ProcessLifecycleInitializer



Initializes ProcessLifecycleOwner using androidx.startup.

Summary

Public constructors

android

Public functions

open LifecycleOwner
create(context: Context)

Initializes a library component within the application Context.

android
open List<Class<Initializer<*>>>

Gets a list of this initializer's dependencies.

android

Public constructors

ProcessLifecycleInitializer

ProcessLifecycleInitializer()

Public functions

create

open fun create(context: Context): LifecycleOwner

Initializes a library component within the application Context.

Parameters
context: Context

The application context.

dependencies

open fun dependencies(): List<Class<Initializer<*>>>

Gets a list of this initializer's dependencies. Dependencies are initialized before the dependent initializer. For example, if initializer A defines initializer B as a dependency, B is initialized before A.

Returns
List<Class<Initializer<*>>>

A list of initializer dependencies.