ElectronNotification.on('close') method
ElectronNotification › on(‘close’)
Unofficial
Registers an event listener that is invoked when the notification is closed by manual intervention from the user.Signature:
on(event: "close", listener: (event: ElectronEvent) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "close" | The event name. |
| listener | (event: ElectronEvent) => void | The event handler. |
Returns: this — This notification instance.