Hosanna UI API v1.30.2-next
    Preparing search index...

    Function toggleNotificationSubscription

    • Toggles subscription to notifications for a given client. Subscribes or unsubscribes all registered notification handlers based on the 'active' flag. Stores bound handlers on target as __handler${notificationName} so subscribe/unsubscribe use the same reference (no WeakMap; Roku-compatible). If a bound handler already exists for a notification name when subscribing, it is unsubscribed first.

      Parameters

      • target: INotificationClient

        The notification client.

      • active: boolean

        If true, subscribes handlers; if false, unsubscribes them.

      Returns void