Api
IWatchedValueReadonly
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
subscribe
subscribe(
callback: (value: T) => void,
options?: WatchedValueSubscribeOptions,
): void;Use the type signature above and the integration guide for the owning capability.
| Parameter | Type | Required |
|---|---|---|
callback | (value: T) => void | Yes |
options | WatchedValueSubscribeOptions | No |
unsubscribe
unsubscribe(callback?: ((value: T) => void) | null): void;Use the type signature above and the integration guide for the owning capability.
| Parameter | Type | Required |
|---|---|---|
callback | ((value: T) => void) | null | No |
when
when(callback: WatchedValueCallback<T>): void;Use the type signature above and the integration guide for the owning capability.
| Parameter | Type | Required |
|---|---|---|
callback | WatchedValueCallback<T> | Yes |