createInstance

inline fun <R : Resource> createInstance(): R(source)

Registers a resource.

Return

The companion object of the resource.

Parameters

R

The type of the resource.


fun <R : Resource> createInstance(clazz: KClass<R>): R(source)

Creates a new instance of a resource.

Return

The new instance.

Parameters

clazz

The class of the resource.

R

The type of the resource.


Creates a new instance of a resource.

Return

The new instance.

Parameters

type

The type of the resource.