koin-core / org.koin.core.definition / DefinitionContext

DefinitionContext

sealed class DefinitionContext

Properties

koin

val koin: Koin

Functions

currentScope

abstract fun currentScope(): Scope

Get the current Scope

get

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

Resolve an instance from Koin

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

Resolve an instance from Koin / extenral scope instance

getFromScope

fun <T> getFromScope(scopeId: String, qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): T

Retrieve from SCope

getProperty

fun <T> getProperty(key: String, defaultValue: T? = null): T

Get a property from Koin

Inheritors

DefaultContext

class DefaultContext : DefinitionContext

ScopedContext

class ScopedContext : DefinitionContext