Package dev.burnoo.cokoin

Functions

get
Link copied to clipboard
@Composable
inline fun <T> get(qualifier: Qualifier? = null, noinline parameters: ParametersDefinition? = null): T

Gets instance from Koin, uses Scope.get.

getKoin
Link copied to clipboard
@Composable
fun getKoin(): Koin

Gets current Koin instance from the closest parent dev.burnoo.cokoin.Koin.

getScope
Link copied to clipboard
@Composable
fun getScope(): Scope

Gets current Scope from the closest parent dev.burnoo.cokoin.KoinScope

Koin
Link copied to clipboard
@Composable
fun Koin(appDeclaration: KoinAppDeclaration? = null, content: @Composable () -> Unit)
@Composable
fun Koin(koinApplication: KoinApplication, content: @Composable () -> Unit)

Composable wrapper for Koin.

KoinScope
Link copied to clipboard
@Composable
fun KoinScope(getScope: Koin.() -> Scope, content: @Composable () -> Unit)

Composable wrapper for Scope. Nesting this function adds parent scope with Scope.linkTo