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
onStart
onResume
onPause
onStop