belongs to Maven artifact android.arch.lifecycle:extensions:1.1.1
Class that provides lifecycle for the whole application process.
You can consider this LifecycleOwner as the composite of all of your Activities, except that
ON_CREATE will be dispatched once and
will never be dispatched. Other lifecycle events will be dispatched with following rules:
ProcessLifecycleOwner will dispatch
ON_RESUME events, as a first activity moves through these events.
ON_STOP, events will be dispatched with
a delay after a last activity
passed through them. This delay is long enough to guarantee that ProcessLifecycleOwner
won't send any events if activities are destroyed and recreated due to a
It is useful for use cases where you would like to react on your app coming to the foreground or going to the background and you don't need a milliseconds accuracy in receiving lifecycle events.
The LifecycleOwner for the whole application process.
Returns the Lifecycle of the provider.
LifecycleOwner get ()
The LifecycleOwner for the whole application process. Note that if your application has multiple processes, this provider does not know about other processes.