Package 

Class StateFlowExtKt

    • Method Summary

      Modifier and Type Method Description
      final static <State extends Any, UiState extends Any> StateFlow<UiState> mapState(StateFlow<State> $self, UiStateMapper<State, UiState> uiStateMapper) Map Store state to ui state with uiStateMapper
      final static <StoreState extends Any, UiState extends Any> State<UiState> collectState(StateFlow<StoreState> $self, UiStateMapper<StoreState, UiState> uiStateMapper) Collect state from StateFlow and map it to UiState with uiStateMapper
      final static <StoreState extends Any> State<StoreState> collectState(StateFlow<StoreState> $self) Collect state from StateFlow and map it to StoreState
      • Methods inherited from class java.lang.Object

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

      • mapState

        @Composable()@ExperimentalCoroutinesApi() final static <State extends Any, UiState extends Any> StateFlow<UiState> mapState(StateFlow<State> $self, UiStateMapper<State, UiState> uiStateMapper)

        Map Store state to ui state with uiStateMapper

        Parameters:
        uiStateMapper -
        • маппер state в ui state

      • collectState

        @Composable()@ExperimentalCoroutinesApi() final static <StoreState extends Any, UiState extends Any> State<UiState> collectState(StateFlow<StoreState> $self, UiStateMapper<StoreState, UiState> uiStateMapper)

        Collect state from StateFlow and map it to UiState with uiStateMapper

        Parameters:
        uiStateMapper -
        • state mapper to ui state

      • collectState

        @Composable() final static <StoreState extends Any> State<StoreState> collectState(StateFlow<StoreState> $self)

        Collect state from StateFlow and map it to StoreState