scope
Extension that returns a ScopeProvider for this LifecycleOwner.
Extension that returns a ScopeProvider for this LifecycleOwner.
Parameters
untilEvent
the event until the scope is valid.
inline fun LifecycleOwner.scope(boundaryResolver: CorrespondingEventsFunction<Lifecycle.Event>): ScopeProvider
Extension that returns a ScopeProvider for this LifecycleOwner.
Parameters
boundaryResolver
function that resolves the event boundary.
Extension that returns a ScopeProvider for this Lifecycle.
Extension that returns a ScopeProvider for this Lifecycle.
Parameters
untilEvent
the event until the scope is valid.
inline fun Lifecycle.scope(boundaryResolver: CorrespondingEventsFunction<Lifecycle.Event>): ScopeProvider
Extension that returns a ScopeProvider for this Lifecycle.
Parameters
boundaryResolver
function that resolves the event boundary.