ProcessLifecycleInitializer


Initializes ProcessLifecycleOwner using androidx.startup.

Summary

Public constructors

android

Public functions

open LifecycleOwner
create(context: Context)

Initializes and a component given the application Context

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

Public constructors

ProcessLifecycleInitializer

ProcessLifecycleInitializer()

Public functions

create

open fun create(context: Context): LifecycleOwner

Initializes and a component given the application Context

Parameters
context: Context

The application context.

dependencies

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

A list of dependencies that this Initializer depends on. This is used to determine initialization order of Initializers. For e.g. if a Initializer `B` defines another Initializer `A` as its dependency, then `A` gets initialized before `B`.