setCallback

fun setCallback(callback: CallbackPropertyCallback, isConstant: Boolean)(source)

Sets the callback to be used.

Parameters

callback

The function to be called when the property is evaluated.

isConstant

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

See also