koin-android / org.koin.androidx.scope / ScopeActivity

ScopeActivity

abstract class ScopeActivity : AppCompatActivity, AndroidScopeComponent

ScopeActivity

AppCompatActivity, allow to create & destroy tied Koin scope

Author
Arnaud Giuliani

Constructors

<init>

ScopeActivity

ScopeActivity(contentLayoutId: Int = 0, initialiseScope: Boolean = true)

Properties

scope

open val scope: Scope

Functions

onCreate

open fun onCreate(savedInstanceState: Bundle?): Unit

Extension Functions

getOrCreateScope

fun <T : ComponentCallbacks> T.getOrCreateScope(): Lazy<Scope>

newScope

fun <T : ComponentCallbacks> T.newScope(): Lazy<Scope>