Script API - v1.26.40.20
    Preparing search index...

    Class ObservableUIRawMessageRc

    An observable that holds a UIRawMessage value. Listeners are notified whenever the value changes.

    export class ObservableUIRawMessage {
    constructor(data: UIRawMessage, options?: ObservableOptions);
    getData(): UIRawMessage;
    setData(data: UIRawMessage): void;
    subscribe(callback: (arg0: UIRawMessage) => void): (arg0: UIRawMessage) => void;
    unsubscribe(callback: (arg0: UIRawMessage) => void): boolean;
    }
    Index

    Constructors

    Methods

    • Returns UIRawMessage

      Returns the current UIRawMessage value held by this observable.

      This function can't be called in restricted-execution mode.

      This function can be called in early-execution mode.

    • Parameters

      Returns void

      Updates the UIRawMessage value held by this observable. If the new value differs from the current value, all subscribed listeners are notified with the new value.

      This function can't be called in restricted-execution mode.

      This function can be called in early-execution mode.

    • Parameters

      • callback: (arg0: UIRawMessage) => void

        A function that receives the new UIRawMessage value each time the observable changes.

      Returns (arg0: UIRawMessage) => void

      Registers a callback to be invoked whenever the observable's value changes. Returns the callback, which can be passed to unsubscribe to remove the listener.

      This function can't be called in restricted-execution mode.

      This function can be called in early-execution mode.

    • Parameters

      • callback: (arg0: UIRawMessage) => void

        The callback handle previously returned by subscribe.

      Returns boolean

      Removes a previously registered listener from this observable. Returns true if the listener was found and removed, false if it was not found.

      This function can't be called in restricted-execution mode.

      This function can be called in early-execution mode.