on
Emitted when the notification is clicked by the user.
Emitted when the notification is closed by manual intervention from the user.
This event is not guaranteed to be emitted in all cases where the notification is closed.
On Windows, the close
event can be emitted in one of three ways: programmatic dismissal with notification.close()
, by the user closing the notification, or via system timeout. If a notification is in the Action Center after the initial close
event is emitted, a call to notification.close()
will remove the notification from the action center but the close
event will not be emitted again.
Emitted when an error is encountered while creating and showing the native notification.
Emitted when the user clicks the "Reply" button on a notification with hasReply: true
.
Emitted when the notification is shown to the user. Note that this event can be fired multiple times as a notification can be shown multiple times through the show()
method.