Class NotificationManager

Notification manager

Hierarchy

  • NotificationManager

Implements

Constructors

Properties

_changed: any
_isDisposed: any
_queue: any

Accessors

  • get count(): number
  • Total number of notifications.

    Returns number

  • get isDisposed(): boolean
  • Whether the manager is disposed or not.

    Returns boolean

  • get notifications(): INotification<ReadonlyJSONValue>[]
  • The list of notifications.

    Returns INotification<ReadonlyJSONValue>[]

Methods

  • Dismiss one notification (specified by its id) or all if no id provided.

    Parameters

    • Optional id: string

      Notification id

    Returns void

  • Dispose the manager.

    Returns void

  • Test whether a notification exists or not.

    Parameters

    • id: string

      Notification id

    Returns boolean

    Notification status

  • Add a new notification.

    This will trigger the changed signal with an added event.

    Type Parameters

    • T extends ReadonlyJSONValue = ReadonlyJSONValue

    Parameters

    Returns string

    Notification unique id

  • Update an existing notification.

    If the notification does not exists this won't do anything.

    Once updated the notification will be moved at the begin of the notification stack.

    Type Parameters

    • T extends ReadonlyJSONValue = ReadonlyJSONValue

    Parameters

    Returns boolean

    Whether the update was successful or not.

Generated using TypeDoc