Package dev.floofy.utils.koin

Functions

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

Readonly property to quickly get a reference of T.

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.