Package 

Class StateViewModel

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final StateFlow<State> state
    • Method Summary

      Modifier and Type Method Description
      StateFlow<State> getState()
      final <T extends Any> Job collectToState(Flow<T> $self, CoroutineScope scope, SuspendFunction2<State, T, State> block)
      • Methods inherited from class dev.stateholder.extensions.StateViewModel

        addCloseable, clear, getTag, onCleared, setTagIfAbsent
      • Methods inherited from class java.lang.Object

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

      • StateViewModel

        StateViewModel(StateProvider<State> stateProvider)
      • StateViewModel

        StateViewModel(State initialState)
      • StateViewModel

        StateViewModel(StateHolder<State> stateHolder)