Delegate

sealed class Delegate<in M, T>

Kapsule property delegate.

Parameters

Property value type.
initializer

Value initializer function.

Inheritors

Types

Link copied to clipboard
class Optional<in M, T>(initializer: M.() -> T?) : Delegate<M, T>

Delegate for optional (nullable) values.

Link copied to clipboard
class Required<in M, T>(initializer: M.() -> T) : Delegate<M, T>

Delegate for required (non-null) values.

Properties

Link copied to clipboard
var value: T?

Functions

Link copied to clipboard
fun initialize(module: M)

Initializes value from the injection module.