Package 

Class ContainerHostExtensionsKt

    • Method Summary

      Modifier and Type Method Description
      final static <STATE extends Any, SIDE_EFFECT extends Any> Unit collectSideEffect(ContainerHost<STATE, SIDE_EFFECT> $self, Lifecycle.State lifecycleState, SuspendFunction1<SIDE_EFFECT, Unit> sideEffect) Observe Container.sideEffectFlow in a Compose LaunchedEffect.
      final static <STATE extends Any, SIDE_EFFECT extends Any> Unit collectState(ContainerHost<STATE, SIDE_EFFECT> $self, Lifecycle.State lifecycleState, SuspendFunction1<STATE, Unit> state) Observe Container.stateFlow in a Compose LaunchedEffect.
      final static <STATE extends Any, SIDE_EFFECT extends Any> State<STATE> collectAsState(ContainerHost<STATE, SIDE_EFFECT> $self, Lifecycle.State lifecycleState) Observe Container.stateFlow as State.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • collectAsState

        @Composable() final static <STATE extends Any, SIDE_EFFECT extends Any> State<STATE> collectAsState(ContainerHost<STATE, SIDE_EFFECT> $self, Lifecycle.State lifecycleState)

        Observe Container.stateFlow as State.

        Parameters:
        lifecycleState - The Lifecycle where the restarting collecting from this flow work will be kept alive.