subscribe
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>
An alias for subscribe that subscribes to this
Container using its lifecycle.
See the parent function documentation for more details on how the composable subscribes to the store.
See also
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>
fun <S : MVIState, I : MVIIntent, A : MVIAction> ImmutableStore<S, I, A>.subscribe(lifecycleOwner: LifecycleOwner, lifecycleState: Lifecycle.State = Lifecycle.State.CREATED): State<S>
An alias for subscribe that uses the provided Essenty LifecycleOwner for subscription.
See the parent function documentation for more details on how the composable subscribes to the store.