interface KoinScopeComponent : KoinComponent
Koin Scope Component
Help bring Scope API = Create/Destroy Scope for the given object
scope |
abstract val scope: Scope |
closeScope |
open fun closeScope(): Unit |
bind |
Get instance instance from Koin by Primary Type P, as secondary type S fun <S : Any, P : Any> KoinComponent.bind(parameters: ParametersDefinition? = null): S |
createScope |
fun <T : KoinScopeComponent> T.createScope(source: Any? = null): Scope |
get |
Get instance instance from Koin fun <T : Any> KoinComponent.get(qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): T |
getOrCreateScope |
fun <T : KoinScopeComponent> T.getOrCreateScope(): <ERROR CLASS> |
getScopeOrNull |
fun <T : KoinScopeComponent> T.getScopeOrNull(): Scope? |
inject |
Lazy inject instance from Koin fun <T : Any> KoinComponent.inject(qualifier: Qualifier? = null, mode: LazyThreadSafetyMode = KoinPlatformTools.defaultLazyMode(), parameters: ParametersDefinition? = null): Lazy<T> |
newScope |
fun <T : KoinScopeComponent> T.newScope(): <ERROR CLASS> |