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:

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

Returns: thisThis notification instance.