CallbackProperty

external class CallbackProperty(callback: CallbackPropertyCallback, val isConstant: Boolean)(source)

A Property whose value is lazily evaluated by a callback function.

Parameters

callback

The function to be called when the property is evaluated.

See also

Constructors

Link copied to clipboard
constructor(callback: CallbackPropertyCallback, isConstant: Boolean)

Properties

Link copied to clipboard

Gets the event that is raised whenever the definition of this property changes. The definition is changed whenever setCallback is called.

Link copied to clipboard

true when the callback function returns the same value every time, false if the value will change.

Functions

Link copied to clipboard
fun getValue(time: JulianDate? = definedExternally, result: Any? = definedExternally): Any

Gets the value of the property.

Link copied to clipboard
fun setCallback(callback: CallbackPropertyCallback, isConstant: Boolean)

Sets the callback to be used.