koin-core / org.koin.core.scope / Scope / getAll

getAll

inline fun <reified T> getAll(): List<T>

Get a all instance for given inferred class (in primary or secondary type)

Return
list of instances of type T

fun <T> getAll(clazz: KClass<*>): List<T>

Get a all instance for given class (in primary or secondary type)

Parameters

clazz - T

Return
list of instances of type T