Constructor
new Notification()
Methods
(async) close() → {Promise.<void>}
Closes the notification
- Tutorials:
Returns:
- Type
- Promise.<void>
(async) sendMessage(message) → {Promise.<void>}
Sends a message to the notification.
Parameters:
Name | Type | Description |
---|---|---|
message |
any | The message to be sent to the notification. Can be either a primitive data type (string, number, or boolean) or composite data type (object, array) that is composed of other primitive or composite data types |
- Tutorials:
Returns:
- Type
- Promise.<void>
(async) show() → {Promise.<void>}
Invoked when the notification is shown
- Tutorials:
Returns:
- Type
- Promise.<void>