koin-core / org.koin.core.definition / ScopedContext

ScopedContext

class ScopedContext : DefinitionContext

Constructors

<init>

ScopedContext(koin: Koin, scope: Scope)

Inherited Properties

koin

val koin: Koin

Functions

currentScope

fun currentScope(): Scope

Get the current Scope

Inherited Functions

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