@JsType(isNative=true, namespace="Cesium", name="CallbackProperty") public class CallbackProperty<T> extends Property<T>
Modifier and Type | Class and Description |
---|---|
static interface |
CallbackProperty.Callback<T> |
Constructor and Description |
---|
CallbackProperty(CallbackProperty.Callback<T> callback,
boolean isConstant) |
Modifier and Type | Method and Description |
---|---|
void |
setCallback(CallbackProperty.Callback<T> callback,
boolean isConstant)
Sets the callback to be used.
|
definitionChanged, equals, getValue, getValue, getValueOrUndefined, isConstant
@JsConstructor public CallbackProperty(CallbackProperty.Callback<T> callback, boolean isConstant)
@JsMethod public void setCallback(CallbackProperty.Callback<T> callback, boolean isConstant)
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.Copyright © 2019. All rights reserved.