koin-android-viewmodel / org.koin.android.viewmodel.dsl / org.koin.dsl.ScopeSet / viewModel

viewModel

inline fun <reified T : ViewModel> ScopeSet.viewModel(qualifier: Qualifier? = null, override: Boolean = false, noinline definition: Definition<T>): BeanDefinition<T>

ViewModel DSL Extension Allow to declare a ViewModel - be later inject into Activity/Fragment with dedicated injector

Parameters

qualifier -

override -

Author
Arnaud Giuliani