subscribe

@JvmName(name = "subscribe1")
fun <T : LifecycleOwner, ImmutableContainer<S, I, A>, S : MVIState, I : MVIIntent, A : MVIAction> T.subscribe(lifecycleState: Lifecycle.State = Lifecycle.State.CREATED): State<S>
@JvmName(name = "subscribe2")
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


@JvmName(name = "subscribe3")
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>
@JvmName(name = "subscribe4")
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.

See also