abstract class ScopeActivity : AppCompatActivity, KoinScopeComponent
ScopeActivity
AppCompatActivity, allow to create & destroy tied Koin scope
Author
Arnaud Giuliani
<init> |
ScopeActivity ScopeActivity(contentLayoutId: Int = 0, initialiseScope: Boolean = true) |
scope |
open val scope: Scope |
get |
get given dependency fun <T : Any> get(qualifier: Qualifier? = null, parameters: ParametersDefinition? = null): T |
inject |
inject lazily fun <T : Any> inject(qualifier: Qualifier? = null, mode: LazyThreadSafetyMode = LazyThreadSafetyMode.SYNCHRONIZED, parameters: ParametersDefinition? = null): Lazy<T> |
onCreate |
open fun onCreate(savedInstanceState: Bundle?): Unit |
onDestroy |
open fun onDestroy(): Unit |
activityRetainedScope |
fun <T : ComponentActivity> T.activityRetainedScope(): Scope |
activityScope |
Provide Koin Scope tied to ComponentActivity fun <T : ComponentActivity> T.activityScope(): Scope |
getScopeId |
fun <T : ComponentActivity> T.getScopeId(): String |
getScopeName |
fun <T : ComponentActivity> T.getScopeName(): TypeQualifier |
newScope |
Create new scope fun <T : ComponentActivity> T.newScope(source: Any? = null): Scope |