Skip to content

ElectronTray.on('balloon-closed') method

ElectronTray › on(‘balloon-closed’)

Unofficial

Registers a listener that is invoked when the tray balloon is closed because of timeout or user manually closes it. win32 only.

Signature:

on(event: "balloon-closed", listener: () => void): this

Parameters:

Parameter Type Description
event "balloon-closed" The event name.
listener () => void The event handler.

Returns: thisThis tray instance.