koin-core / org.koin.core / KoinComponent

KoinComponent

interface KoinComponent

KoinComponent interface marker to bring Koin extensions features

Author
Arnaud Giuliani

Functions

getKoin

open fun getKoin(): Koin

Get the associated Koin instance

Extension Functions

bind

fun <S, P> KoinComponent.bind(parameters: ParametersDefinition? = null): S

Get instance instance from Koin by Primary Type P, as secondary type S

get

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

Get instance instance from Koin

inject

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

Lazy inject instance from Koin