Skip to content

ElectronNotification.on('close') method

ElectronNotification › on(‘close’)

Unofficial

Registers an event listener that is invoked when the notification is closed by manual intervention from the user.

Signature:

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

Parameters:

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

Returns: thisThis notification instance.