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

getViewModelByClass

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

Get a viewModel instance

Parameters

clazz -

key -

name -

from -

parameters -