ProcessLifecycleInitializer

public final class ProcessLifecycleInitializer
extends Object implements Initializer<LifecycleOwner>

java.lang.Object
   ↳ androidx.lifecycle.ProcessLifecycleInitializer


Initializes ProcessLifecycleOwner using androidx.startup.

Summary

Public constructors

ProcessLifecycleInitializer()

Public methods

LifecycleOwner create(Context context)

Initializes and a component given the application Context

List<Class<? extends Initializer<?>>> dependencies()

Inherited methods

Public constructors

ProcessLifecycleInitializer

public ProcessLifecycleInitializer ()

Public methods

create

public LifecycleOwner create (Context context)

Initializes and a component given the application Context

Parameters
context Context: The application context.

Returns
LifecycleOwner

dependencies

public List<Class<? extends Initializer<?>>> dependencies ()

Returns
List<Class<? extends Initializer<?>>>