androidProcessLifecycle
inline fun <R : Any> SingletonService<R>.androidProcessLifecycle(noinline onCreate: GCallback<R>? = null, noinline onStart: GCallback<R>? = null, noinline onResume: GCallback<R>? = null, noinline onPause: GCallback<R>? = null, noinline onStop: GCallback<R>? = null): SingletonService<R>(source)
Registers an Android androidx.lifecycle.LifecycleObserver on the ProcessLifecycleOwner and calls the provided callbacks accordingly with the io.jentz.winter.Graph as receiver and R as argument.
Parameters
onCreate
Called on Lifecycle.Event.ON_CREATE
onStart
Called on Lifecycle.Event.ON_START
onResume
Called on Lifecycle.Event.ON_RESUME
onPause
Called on Lifecycle.Event.ON_PAUSE
onStop
Called on Lifecycle.Event.ON_STOP