Skip to content

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): this

Parameters:

Parameter Type Description
event "click" The event name.
listener (event: ElectronEvent) => void The event handler.

Returns: thisThis notification instance.