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"
listener($event: ElectronEvent) => voidThe event handler.

Returns: this — This notification instance.