vector / com.haroldadmin.vector / SavedStateVectorViewModel / <init>
<init>¶
SavedStateVectorViewModel(initialState:S, stateStoreContext:CoroutineContext= Dispatchers.Default + Job(), savedStateHandle:SavedStateHandle)
A Subclass of VectorViewModel that has access to a SavedStateHandle to easily persist state properties in case of process death
Parameters¶
initialState - The initial state for this ViewModel
stateStoreContext - The CoroutineContext to be used with the contained State Store
savedStateHandle - The SavedStateHandle to be used for persisting state across process deaths