Api
IWatchedValue
Integration guide · Reference index
Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.
Extends
IWatchedValueReadonly, IObservableValue
setValue
setValue(value: T, forceUpdate?: boolean): void;Use the type signature above and the integration guide for the owning capability.
| Parameter | Type | Required |
|---|---|---|
value | T | Yes |
forceUpdate | boolean | No |
subscribe
subscribe(
callback: WatchedValueCallback<T>,
options?: WatchedValueSubscribeOptions,
): void;Use the type signature above and the integration guide for the owning capability.
| Parameter | Type | Required |
|---|---|---|
callback | WatchedValueCallback<T> | Yes |
options | WatchedValueSubscribeOptions | No |
unsubscribe
unsubscribe(callback?: WatchedValueCallback<T> | null): void;Use the type signature above and the integration guide for the owning capability.
| Parameter | Type | Required |
|---|---|---|
callback | WatchedValueCallback<T> | null | No |