Package-level declarations
Functions
Link copied to clipboard
Provides a local Essenty lifecycle owner through a LocalSubscriberLifecycle. Can be used in conjunction with DefaultLifecycle afterwards.
Link copied to clipboard
fun <T : LifecycleOwner, ImmutableContainer<S, I, A>, S : MVIState, I : MVIIntent, A : MVIAction> T.subscribe(lifecycleState: Lifecycle.State = Lifecycle.State.CREATED): State<S>
fun <T : LifecycleOwner, ImmutableContainer<S, I, A>, S : MVIState, I : MVIIntent, A : MVIAction> T.subscribe(lifecycleState: Lifecycle.State = Lifecycle.State.CREATED, consume: suspend CoroutineScope.(action: A) -> Unit): State<S>
fun <S : MVIState, I : MVIIntent, A : MVIAction> ImmutableStore<S, I, A>.subscribe(lifecycleOwner: LifecycleOwner, lifecycleState: Lifecycle.State = Lifecycle.State.CREATED): State<S>
fun <S : MVIState, I : MVIIntent, A : MVIAction> ImmutableStore<S, I, A>.subscribe(lifecycleOwner: LifecycleOwner, lifecycleState: Lifecycle.State = Lifecycle.State.STARTED, consume: suspend CoroutineScope.(action: A) -> Unit): State<S>
An alias for subscribe that uses the provided Essenty LifecycleOwner for subscription.