Home

vector / com.haroldadmin.vector / androidx.activity.ComponentActivity

Extensions for androidx.activity.ComponentActivity

Name Summary
activityViewModelOwner funComponentActivity.activityViewModelOwner():ActivityViewModelOwner
Creates a ViewModelOwner from this activity
viewModel fun <VM :VectorViewModel<S>, S :VectorState>ComponentActivity.viewModel(stateStoreContext:CoroutineContext= Dispatchers.Default + Job()):vectorLazy<VM>
Lazy delegate for creating a VectorViewModel from an Activityfun <VM :VectorViewModel<S>, S :VectorState>ComponentActivity.viewModel(viewModelCreator: (initialState:S, handle:SavedStateHandle) ->VM):vectorLazy<VM>
Lazy delegate for creating a VectorViewModel from an Activity using the given producer lambda