DerivedDynamicValue

Allows a new DynamicValue to be derived from an existing DynamicValue, with modifications applied.

Parameters

The type held by the DynamicValue from which this is derived

Constructors

Link copied to clipboard
constructor(dynamicValue: DynamicValue<I>, modifier: DerivedDynamicValue.Modifier<I, O>)

Types

Link copied to clipboard
fun interface Modifier<in I, out O>

Properties

Link copied to clipboard

Retrieves the amount of listeners attached to this DynamicValue.

Functions

Link copied to clipboard

Register a callback to be invoked when the value changes.

Link copied to clipboard

Remove a callback.

Link copied to clipboard
fun get(): O

Retrieves the current value.

Link copied to clipboard
fun set(value: O)

Sets current value and notifies all the attached listeners