vector / com.haroldadmin.vector / VectorViewModelFactory / initialState

initialState

open fun initialState(handle:SavedStateHandle, owner:ViewModelOwner):S?

Used to create the initial state, if this method is implemented.

Parameters

handle - Can be used to retrieve last saved state before process death, using SavedStateVectorViewModel.KEY_SAVED_STATE or some other mechanism.

owner - The ViewModelOwner for this ViewModel. Can be used to access fragment arguments, context etc.

Return Initial state to be used for creation of the ViewModel