Constructor
new Notification(client, data)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
client |
Client
|
Client this notification came from |
data |
NotificationData
|
The notification data provided by the client |
Members
clientId :number
Client id that own this notification
- Source:
Type:
-
number
data :NotificationData
Might be pulled directly into this class later, for now I am lazy
- Source:
Type:
Methods
activate(dataopt)
The notification was activated (clicked). Causes class to emit 'activate'
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
UpdateNotificationData
|
<optional> |
User input from the notification |
error()
Called when the notification failed to be displayed.
Utilizes the TrayIcon we created for MainWindow to send out a balloon tooltip icon.
- Source:
push() → {void}
Pushes the notification out to the OS
- Source:
Returns:
- Type:
-
void
update(data)
Updates the notification data and the toast notification on the OS side.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
data |
NotificationData
|
The notification data provided by the client |