koin-android-viewmodel / org.koin.android.viewmodel.ext.android / android.arch.lifecycle.LifecycleOwner / viewModelByClass

viewModelByClass

fun <T : ViewModel> LifecycleOwner.viewModelByClass(clazz: KClass<T>, key: String? = null, name: String? = null, from: ViewModelStoreOwnerDefinition? = null, parameters: ParameterDefinition = emptyParameterDefinition()): Lazy<T>

Lazy getByClass a viewModel instance

Parameters

clazz -

key -

name -

from -

parameters -