koin-core / org.koin.core / KoinComponent

KoinComponent

interface KoinComponent

KoinComponent interface marker to bring Koin extensions features

Author
Arnaud Giuliani

Functions

currentScope

open fun currentScope(): Scope

THe associated scope

getKoin

open fun getKoin(): Koin

Get the associated Koin instance

Extension Functions

get

fun <T> KoinComponent.get(qualifier: Qualifier? = null, scope: Scope = currentScope(), parameters: ParametersDefinition? = null): T

Get instance instance from Koin

inject

fun <T> KoinComponent.inject(qualifier: Qualifier? = null, scope: Scope = currentScope(), parameters: ParametersDefinition? = null): Lazy<T>

Lazy inject instance from Koin