source

fun <T : Any> source(type: KClass<T>, qualifier: String? = null): T(source)

Retrieves an instance of the registered object of the specified type and qualifier

Return

The registered object

Parameters

type

The KClass of the object

Type Parameters

T

The type of the object to retrieve

Throws

if no instance is registered for the type


fun <T : Any> source(key: CanvasKey<T>): T(source)

Retrieves an instance of the registered object under the CanvasKey

Return

The registered object

Parameters

key

the key the object is registered under

Type Parameters

T

the type of the registered object

Throws

if no instance is registered for the type