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:

ParameterTypeDescription
event"click"The event name.
listener(event: ElectronEvent) => voidThe event handler.

Returns: thisThis notification instance.