Emit a close event

This commit is contained in:
Samuel Attard 2017-05-29 21:33:43 +10:00
parent 9aa6b83f86
commit 6cdfb43e4e
5 changed files with 21 additions and 11 deletions

View file

@ -37,16 +37,7 @@ Objects created with `new Notification` emit the following events:
**Note:** Some events are only available on specific operating systems and are
labeled as such.
#### Event: 'click'
Returns:
* `event` Event
Emitted when the document changed its title, calling `event.preventDefault()`
will prevent the native window's title from changing.
#### Event: 'close'
#### Event: 'show'
Returns:
@ -64,6 +55,17 @@ Returns:
Emitted when the notification is clicked by the user.
#### Event: 'close'
Returns:
* `event` Event
Emitted when the notification is closed by manual intervention from the user.
This event is not guarunteed to be emitted in all cases where the notification
is closed.
#### Event: 'reply' _macOS_
Returns: