Package-level declarations

Functions

Link copied to clipboard
inline fun <T> inject(): ReadOnlyProperty<Any?, T>

Readonly property to quickly get a reference of T.

Link copied to clipboard
inline fun <T> injectOrNull(): ReadOnlyProperty<Any?, T?>

Readonly property to get a reference of T or null if it wasn't found in the Koin application.

Link copied to clipboard
inline fun <T> GlobalContext.retrieve(): T

Simple method to return an object as T from the current Koin application

Link copied to clipboard
inline fun <T> GlobalContext.retrieveAll(): List<T>

Returns a list of objects as T from the current Koin application.

Link copied to clipboard
inline fun <T> GlobalContext.retrieveOrNull(): T?

Simple method to return an object as T from the current Koin application or null if it was never registered.