NotificationManager

NotificationManager

new NotificationManager(client)

Creates a new notification manager. Kinda pointless for now.. and likely later too
Source:
Parameters:
Name Type Description
client Client Client we represent

Methods

deleteNotification(id) → {boolean}

Remove a notification from the OS tray and this manager
Source:
Parameters:
Name Type Description
id string Notification's identification (provided by client)
Returns:
Type:
boolean
True if notification was delete or false if the notification does not exist

destroy(dismissAllNotificationsopt)

Source:
Parameters:
Name Type Attributes Default Description
dismissAllNotifications boolean <optional>
false Remove all notifications from this manager from the OS notification tray

newNotification(notification) → {void}

Source:
Parameters:
Name Type Description
notification Notification
Returns:
Type:
void

notificationActivated(id) → {void}

Notification was activated by the client on the client side Removes the notification from the OS notification tray and this manager
Source:
Parameters:
Name Type Description
id string Notification's identification (provided by client)
Returns:
Type:
void

notificationDismissed(id) → {void}

Source:
Parameters:
Name Type Description
id string Notification's identification (provided by client)
Returns:
Type:
void

updateNotification(id) → {void}

Source:
Parameters:
Name Type Description
id string Notification's identification (provided by client)
Returns:
Type:
void