LifecycleScopeProvider

@DoNotMock(value = "Use TestLifecycleScopeProvider instead")
interface LifecycleScopeProvider<@NonNull E> : ScopeProvider

A convenience interface that, when implemented, helps provide information to create implementations that resolve the next corresponding lifecycle event and construct a Completable representation of it from the lifecycle stream.

Convenience resolver utilities for this can be found in LifecycleScopes.

Parameters

<E>

the lifecycle event type.

See also

Inheritors

Functions

Link copied to clipboard
Returns a sequence of lifecycle events.
Link copied to clipboard
Returns a sequence of lifecycle events.
Link copied to clipboard
abstract fun peekLifecycle(): @Nullable E
Returns the last seen lifecycle event, or null if none.
Link copied to clipboard