Skip to content

ElectronNotification.on('show') method

ElectronNotification › on(‘show’)

Unofficial

Registers an event listener that is invoked when the notification is shown to the user.

Signature:

on($event: "show", listener: ($event: ElectronEvent) => void): this

Parameters:

ParameterTypeDescription
$event"show"
listener($event: ElectronEvent) => voidThe event handler.

Returns: this — This notification instance.