Package-level declarations

Functions

Link copied to clipboard
fun ProvideSubscriberLifecycle(owner: LifecycleOwner, content: @Composable () -> Unit)

Provides a local Essenty lifecycle owner through a LocalSubscriberLifecycle. Can be used in conjunction with DefaultLifecycle afterwards.

Link copied to clipboard
@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.

@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>
@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>

An alias for subscribe that uses the provided Essenty LifecycleOwner for subscription.