koin-android-scope / org.koin.android.scope / ScopeObserver

ScopeObserver

class ScopeObserver : LifecycleObserver, KoinComponent

Observe a LifecycleOwner

Author

Arnaud Giuliani

release module instances from signals : ON_STOP, ON_DESTROY

Constructors

<init>

ScopeObserver(event: Event, target: Any, scope: Scope)

Observe a LifecycleOwner

Properties

event

val event: Event

scope

val scope: Scope

target

val target: Any

Functions

onDestroy

fun onDestroy(): Unit

Handle ON_DESTROY to release Koin modules

onStop

fun onStop(): Unit

Handle ON_DESTROY to release Koin modules