target Fragment View Model
inline fun <T : Fragment, MavericksView, VM : MavericksViewModel<S>, S : MavericksState> T.targetFragmentViewModel(viewModelClass: KClass<VM> = VM::class, crossinline keyFactory: () -> String = { viewModelClass.java.name }): MavericksDelegateProvider<T, VM>
Content copied to clipboard
Gets or creates a ViewModel scoped to a target fragment. Throws IllegalStateException if there is no target fragment.