Skip to content

ElectronTray.on('drop') method

ElectronTray › on(‘drop’)

Unofficial

Registers a listener that is invoked when any dragged items are dropped on the tray icon. darwin only.

Signature:

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

Parameters:

Parameter Type Description
event "drop" The event name.
listener () => void The event handler.

Returns: thisThis tray instance.