-
public final 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 statetoui statewith uiStateMapperfinal static <StoreState extends Any, UiState extends Any> State<UiState>collectState(StateFlow<StoreState> $self, UiStateMapper<StoreState, UiState> uiStateMapper)Collect statefrom StateFlow and map it to UiState with uiStateMapperfinal static <StoreState extends Any> State<StoreState>collectState(StateFlow<StoreState> $self)Collect statefrom StateFlow and map it to StoreState-
-
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
statetoui statewith 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
statefrom 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
statefrom StateFlow and map it to StoreState
-
-
-
-