koin-android / org.koin.androidx.scope / LifecycleScopeDelegate

LifecycleScopeDelegate

class LifecycleScopeDelegate : ReadOnlyProperty<LifecycleOwner, Scope>

Constructors

<init>

LifecycleScopeDelegate(lifecycleOwner: LifecycleOwner, koinContext: KoinContext = GlobalContext, createScope: (Koin) -> Scope = { koin: Koin -> koin.createScope(lifecycleOwner.getScopeId(), lifecycleOwner.getScopeName()) })

Properties

lifecycleOwner

val lifecycleOwner: LifecycleOwner

Functions

getValue

fun getValue(thisRef: LifecycleOwner, property: KProperty<*>): Scope