SavedStateMachine
abstract class SavedStateMachine<S : State, A : Action, E : Effect> @MainThread constructor(savedStateHandle: SavedStateHandle, key: String, initialState: S, graph: Graph<S, A, E>, effectHandle: EffectHandle<S, A, E>, fallbackHandle: FallbackHandle<S, A, E>? = null, logger: Logger = NoopLogger, context: CoroutineContext = EmptyCoroutineContext, initializer: (S) -> MutableStateFlow<S> = { s -> savedStateHandle.getMutableStateFlow(key, s) }) : StateMachine<S, A, E>
A StateMachine that saves its state to SavedStateHandle
Constructors
Link copied to clipboard
constructor(savedStateHandle: SavedStateHandle, key: String, initialState: S, graph: Graph<S, A, E>, effectHandle: EffectHandle<S, A, E>, fallbackHandle: FallbackHandle<S, A, E>? = null, logger: Logger = NoopLogger, context: CoroutineContext = EmptyCoroutineContext, initializer: (S) -> MutableStateFlow<S> = { s -> savedStateHandle.getMutableStateFlow(key, s) })