//reactivestate/com.ensody.reactivestate.android/activityStateFlowViewModel
activityStateFlowViewModel¶
[android]\ inline fun <T : ViewModel> Fragment.activityStateFlowViewModel(crossinline provider: (handle: SavedStateHandleStore) -> T): Lazy<T>
Creates a ViewModel
with a SavedStateHandleStore, scoped to the Activity
.
The provider should instantiate the ViewModel
directly.
See also¶
reactiveState | if you want to create multiplatform ReactiveState ViewModels. |