Package-level declarations

Functions

Link copied to clipboard
inline fun <T : Any> ERROR CLASS: Symbol not found for Module.factory(qualifier: String, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Recursive implicit type

Declares a factory with a string qualifier in the Koin module. This is a convenience function that wraps the string qualifier in a StringQualifier. Unlike singles, factories create a new instance each time they are requested.

Link copied to clipboard
inline fun <T : Any> Module.factorySuspend(qualifier: ERROR CLASS: Symbol not found for Qualifier?? = null, coroutineScope: CoroutineScope? = null, noinline definition: suspend ERROR CLASS: Symbol not found for Scope.(ERROR CLASS: Symbol not found for ParametersHolder) -> T): ERROR CLASS: Recursive implicit type
Link copied to clipboard
inline fun <T : Any> Module.factoryWithBinds(qualifier: ERROR CLASS: Symbol not found for Qualifier?? = null, bindFilter: (KClass<*>) -> Boolean = { true }, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Symbol not found for KoinDefinition<*>
inline fun <T : Any> Module.factoryWithBinds(qualifier: String, bindFilter: (KClass<*>) -> Boolean = { true }, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Symbol not found for KoinDefinition<*>
Link copied to clipboard
inline fun <T : Any> ERROR CLASS: Symbol not found for Module.factoryWithRandomQualifier(noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Recursive implicit type

Declares a factory with a random qualifier in the Koin module. This is useful when you need to declare multiple factory definitions of the same type but want them to be uniquely identifiable without manually specifying qualifiers. Unlike singles, factories create a new instance each time they are requested.

Link copied to clipboard
inline fun <T : Any> Module.factoryWithRandomQualifierAndBinds(bindFilter: (KClass<*>) -> Boolean = { true }, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Symbol not found for KoinDefinition<*>
Link copied to clipboard
fun <T> ERROR CLASS: Symbol not found for Koin.get(definition: ERROR CLASS: Symbol not found for BeanDefinition<T>, parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): T

Retrieves an instance of type T from the Koin container using a BeanDefinition.

fun <T> ERROR CLASS: Symbol not found for Koin.get(definition: ERROR CLASS: Symbol not found for InstanceFactory<T>, parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): T

Retrieves an instance of type T from the Koin container using an InstanceFactory.

fun <T> ERROR CLASS: Symbol not found for Koin.get(definition: ERROR CLASS: Symbol not found for KoinDefinition<T>, parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): T

Retrieves an instance of type T from the Koin container using a KoinDefinition.

fun <T> ERROR CLASS: Symbol not found for Scope.get(definition: ERROR CLASS: Symbol not found for BeanDefinition<T>, parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): T

Retrieves an instance of type T from the current scope using a BeanDefinition.

fun <T> ERROR CLASS: Symbol not found for Scope.get(definition: ERROR CLASS: Symbol not found for InstanceFactory<T>, parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): T

Retrieves an instance of type T from the current scope using an InstanceFactory.

fun <T> ERROR CLASS: Symbol not found for Scope.get(definition: ERROR CLASS: Symbol not found for KoinDefinition<T>, parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): T

Retrieves an instance of type T from the current scope using a KoinDefinition.

Link copied to clipboard
inline fun <T : Any> ERROR CLASS: Symbol not found for Koin.getAllDistinct(): ERROR CLASS: Ambiguity: distinct, [kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/sequences/distinct]

Retrieves all instances of type T from the Koin container and returns them as a distinct list. This function is useful when you want to avoid duplicate instances of the same type.

inline fun <T : Any> ERROR CLASS: Symbol not found for Scope.getAllDistinct(): ERROR CLASS: Ambiguity: distinct, [kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/collections/distinct, kotlin/sequences/distinct]

Retrieves all instances of type T from the current Scope and returns them as a distinct list. This function is useful when you want to avoid duplicate instances of the same type.

Link copied to clipboard
inline fun <T : Any> ERROR CLASS: Symbol not found for Koin.getAny(): ERROR CLASS: Ambiguity: first, [kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/ranges/first, kotlin/ranges/first, kotlin/ranges/first, kotlin/ranges/first, kotlin/ranges/first, kotlin/sequences/first, kotlin/text/first]

Retrieves the first available instance of type T from the Koin container. This is useful when you need any instance of a type and don't care which one.

inline fun <T : Any> ERROR CLASS: Symbol not found for Scope.getAny(): ERROR CLASS: Ambiguity: first, [kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/collections/first, kotlin/ranges/first, kotlin/ranges/first, kotlin/ranges/first, kotlin/ranges/first, kotlin/ranges/first, kotlin/sequences/first, kotlin/text/first]

Retrieves the first available instance of type T from the current scope. This is useful when you need any instance of a type and don't care which one.

Link copied to clipboard
inline fun <T> lazyInject(qualifier: ERROR CLASS: Symbol not found for Qualifier?? = null, noinline parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): Lazy<T>
fun <T> lazyInject(kClassFactory: () -> KClass<*>, qualifier: ERROR CLASS: Symbol not found for Qualifier?? = null, parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): Lazy<T>
fun <T> lazyInject(kClass: KClass<*>, qualifier: ERROR CLASS: Symbol not found for Qualifier?? = null, parameters: ERROR CLASS: Symbol not found for ParametersDefinition?? = null): Lazy<T>
Link copied to clipboard
fun RandomQualifier(randomFun: () -> String = { uuid4().toString() }): ERROR CLASS: Unresolved name: StringQualifier

Creates a StringQualifier with a random string value.

Link copied to clipboard
inline fun <T : Any> ERROR CLASS: Symbol not found for Module.single(qualifier: String, createdAtStart: Boolean = false, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Recursive implicit type

Declares a single instance with a string qualifier in the Koin module. This is a convenience function that wraps the string qualifier in a StringQualifier.

Link copied to clipboard
inline fun <T : Any> Module.singleSuspend(qualifier: ERROR CLASS: Symbol not found for StringQualifier, createdAtStart: Boolean = false, coroutineScope: CoroutineScope? = null, noinline definition: suspend ERROR CLASS: Symbol not found for Scope.(ERROR CLASS: Symbol not found for ParametersHolder) -> T): ERROR CLASS: Recursive implicit type
Link copied to clipboard
inline fun <T : Any> Module.singleWithBinds(qualifier: ERROR CLASS: Symbol not found for Qualifier?? = null, createdAtStart: Boolean = false, bindFilter: (KClass<*>) -> Boolean = { true }, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Symbol not found for KoinDefinition<*>
inline fun <T : Any> Module.singleWithBinds(qualifier: String, createdAtStart: Boolean = false, bindFilter: (KClass<*>) -> Boolean = { true }, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Symbol not found for KoinDefinition<*>
Link copied to clipboard
inline fun <T : Any> ERROR CLASS: Symbol not found for Module.singleWithRandomQualifier(createdAtStart: Boolean = false, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Recursive implicit type

Declares a single instance with a random qualifier in the Koin module. This is useful when you need to declare multiple instances of the same type but want them to be uniquely identifiable without manually specifying qualifiers.

Link copied to clipboard
inline fun <T : Any> Module.singleWithRandomQualifierAndBinds(createdAtStart: Boolean = false, bindFilter: (KClass<*>) -> Boolean = { true }, noinline definition: ERROR CLASS: Symbol not found for Definition<T>): ERROR CLASS: Symbol not found for KoinDefinition<*>