koin-android-viewmodel / org.koin.android.viewmodel.ext.koin / org.koin.dsl.context.ModuleDefinition / viewModel

viewModel

inline fun <reified T : ViewModel> ModuleDefinition.viewModel(name: String = "", override: Boolean = false, noinline definition: Definition<T>): Unit

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

Parameters

name -

override -

Author
Arnaud Giuliani