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