Skip to content

ElectronTray.on('drag-enter') method

ElectronTray › on(‘drag-enter’)

Unofficial

Registers a listener that is invoked when a drag operation enters the tray icon. darwin only.

Signature:

on(event: "drag-enter", listener: () => void): this

Parameters:

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

Returns: thisThis tray instance.