class ScopeObserver : LifecycleObserver, KoinComponent
Observe a LifecycleOwner
Author
Arnaud Giuliani
release module instances from signals : ON_STOP, ON_DESTROY
ScopeObserver(event: Event, target: Any, scope: Scope)
Observe a LifecycleOwner |
val event: Event |
|
val scope: Scope |
|
val target: Any |
fun onDestroy(): Unit
Handle ON_DESTROY to release Koin modules |
|
fun onStop(): Unit
Handle ON_STOP to release Koin modules |