koin-androidx-scope / org.koin.androidx.scope / ScopeService

ScopeService

abstract class ScopeService : Service, KoinScopeComponent

ScopeService

Service component, allow to create & destroy tied Koin scope

Author
Arnaud Giuliani

Constructors

<init>

ScopeService

ScopeService(initialiseScope: Boolean = true)

Properties

scope

open val scope: Scope

Functions

get

get given dependency

fun <T : Any> get(qualifier: Qualifier? = null, parameters: <ERROR CLASS>? = null): T

inject

inject lazily

fun <T : Any> inject(qualifier: Qualifier? = null, mode: LazyThreadSafetyMode = LazyThreadSafetyMode.SYNCHRONIZED, parameters: <ERROR CLASS>? = null): <ERROR CLASS>

onCreate

open fun onCreate(): Unit

onDestroy

open fun onDestroy(): Unit