Create a new BrowserNotification around the notification denoted by id.
Note that you should use the BrowserNotification.create function to create a new notification.
Update the notification.
Wait until the notification is closed
Wait until the notification is removed. This is different from BrowserNotification.waitClosed because it waits for the user to take action.
On Windows for example the onClosed event is triggered when the notification goes off-screen, but it is still accessible in the notification area. The notification is only truly removed when the user takes some sort of action, either "closing" (clearing) the notification or pressing a button. It seems there is no way to detect the clearing of a notification so we only take the buttons into account.
Create a new notification and return it wrapped in a BrowserNotification instance.
Generated using TypeDoc
Wrapper around the low-level notification namespace to make it easier to work with.
It takes an object-oriented approach i.e. the BrowserNotification.update/[[BrowserNotification.clear]] operations are methods on the instance.
BrowserNotification.create to create a new notification and wrap it with a BrowserNotification.