koin-android-viewmodel / org.koin.android.viewmodel.ext.koin / org.koin.core.scope.Scope

Extensions for org.koin.core.scope.Scope

getViewModel

fun <T : ViewModel> Scope.getViewModel(lifecycleOwner: LifecycleOwner, qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): T

Get a viewModel instance

viewModel

fun <T : ViewModel> Scope.viewModel(lifecycleOwner: LifecycleOwner, qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): Lazy<T>

Lazy getByClass a viewModel instance