koin-core / org.koin.ext

Package org.koin.ext

Extensions for External Classes

kotlin.reflect.KClass

kotlin.reflect.KMutableProperty0

kotlin.String

Properties

scope

val <T : Any> T.scope: Scope

Functions

getFloatProperty

Retrieve a float property

fun Koin.getFloatProperty(key: String, defaultValue: Float): Float
fun Koin.getFloatProperty(key: String): Float?

getIntProperty

Retrieve an int property

fun Koin.getIntProperty(key: String, defaultValue: Int): Int
fun Koin.getIntProperty(key: String): Int?

getOrCreateScope

fun <T : Any> T.getOrCreateScope(): Scope
fun <T : Any> T.getOrCreateScope(koin: Koin): Scope

getScopeId

fun <T : Any> T.getScopeId(): String

getScopeName

fun <T : Any> T.getScopeName(): TypeQualifier

setFloatProperty

Save a float property

fun Koin.setFloatProperty(key: String, value: Float): Unit

setIntProperty

Save an int property

fun Koin.setIntProperty(key: String, value: Int): Unit