ProtoTwin API
    Preparing search index...

    Class BooleanSignal

    Boolean Signal.

    A signal for a one-bit value that can be true or false.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get access(): Access

      The accessibility.

      Returns Access

    • get subscribed(): boolean

      Whether there are any subscribers.

      Returns boolean

    • get value(): boolean

      The value.

      Returns boolean

    • set value(value: boolean): void

      The value.

      Parameters

      • value: boolean

      Returns void

    Methods

    • Subscribes to be notified when an event occurs.

      Parameters

      • subscriber: Subscriber<boolean>

        The callback function.

      Returns void

    • Unsubscribes.

      Parameters

      • callback: Subscriber<boolean>

        The callback function.

      Returns boolean

      True if the subscription was canceled, false otherwise.