Provider

fun interface Provider<out T>

Common interface for providers or "factory" objects that create anything of type T.

When implemented, this allows the object to be created using the by delegate, to give it a name, like:

val myNamedValue by MyFactory

Inheritors

Functions

Link copied to clipboard
abstract fun create(name: String): T
Link copied to clipboard
internal operator fun <T> Provider<T>.getValue(obj: Any?, property: KProperty<*>): T