Package-level declarations

Types

Link copied to clipboard
interface DslProperty<T>

A DSL property backed by a Provider. Can be set to a static value or bound to a reactive Provider using the by infix function.

Link copied to clipboard

A DSL property backed by a MutableProvider. Can be set to a static value or bound to a reactive MutableProvider using the by infix function.

Link copied to clipboard

A DSL property backed by a Provider. Can be set to a static value or bound to a reactive Provider using the by infix function.

Functions

Link copied to clipboard
@JvmName(name = "listByValue")
infix fun <T : Any> DslProperty<in List<T>>.by(value: T)

Sets this List property to a single value.

@JvmName(name = "listByValueProvider")
infix fun <T : Any> DslProperty<in List<T>>.by(value: Provider<T>)

Sets this List property to a provider of a single value.

@JvmName(name = "setByValue")
infix fun <T : Any> DslProperty<in Set<T>>.by(value: T)

Sets this Set property to a single value.

@JvmName(name = "setByValueProvider")
infix fun <T : Any> DslProperty<in Set<T>>.by(value: Provider<T>)

Sets this Set property to a provider of a single value.

Link copied to clipboard
fun <T> DslProperty(set: (Provider<T>) -> Unit): DslProperty<T>

Creates a new DslProperty. The backing field is updated via set.

Creates a new DslProperty backed by field.

Link copied to clipboard

Creates a ProviderDslProperty backed by field.

fun <T> ProviderDslProperty(initial: T, set: (Provider<T>) -> Unit): ProviderDslProperty<T>

Creates a ProviderDslProperty with the given initial value. The backing field is updated via set.

Creates a ProviderDslProperty backed by delegate. The backing field is updated via set.