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

Extensions for org.koin.dsl.context.ModuleDefinition

viewModel

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

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