koin-android-scope / org.koin.android.scope / android.arch.lifecycle.LifecycleOwner

Extensions for android.arch.lifecycle.LifecycleOwner

bindScope

fun LifecycleOwner.bindScope(scope: Scope, event: Event = Lifecycle.Event.ON_DESTROY): Unit

Bind given scope to current LifecycleOwner

currentScope

val LifecycleOwner.currentScope: Scope

Get current Koin scope, bound to current lifecycle