Notification

Description

A notification to the user containing a message and type.

API documentation

Event Subscription

::onDidDismiss(callback)

Invoke the given callback when the notification is dismissed.

Argument Description
callback

Function to be called when the notification is dismissed.

Return values
  • Returns a Disposable on which .dispose() can be called to unsubscribe.

::onDidDisplay(callback)

Invoke the given callback when the notification is displayed.

Argument Description
callback

Function to be called when the notification is displayed.

Return values
  • Returns a Disposable on which .dispose() can be called to unsubscribe.

Methods

::getType()

Return values

::getMessage()

Return values

::dismiss()

Dismisses the notification, removing it from the UI. Calling this programmatically will call all callbacks added via onDidDismiss.