Functions
Closes an open context menu, as set by tray.setContextMenu()
.
Displays a tray balloon.
Returns focus to the taskbar notification area. Notification area icons should use this message when they have completed their UI operation. For example, if the icon displays a shortcut menu, but the user presses ESC to cancel it, use tray.focus()
to return focus to the notification area.
Whether double click events will be ignored.
Whether the tray icon is destroyed.
Emitted when the tray balloon is clicked.
Emitted when the tray balloon is closed because of timeout or user manually closes it.
Emitted when the tray balloon shows.
Emitted when the tray icon is clicked.
Emitted when the tray icon is double clicked.
Emitted when a drag operation ends on the tray or ends at another location.
Emitted when a drag operation enters the tray icon.
Emitted when a drag operation exits the tray icon.
Emitted when any dragged items are dropped on the tray icon.
Emitted when dragged files are dropped in the tray icon.
Emitted when dragged text is dropped in the tray icon.
Emitted when the tray icon is middle clicked.
Emitted when the mouse clicks the tray icon.
Emitted when the mouse enters the tray icon.
Emitted when the mouse exits the tray icon.
Emitted when the mouse moves in the tray icon.
Emitted when the mouse is released from clicking the tray icon.
Emitted when the tray icon is right clicked.
Pops up the context menu of the tray icon. When menu
is passed, the menu
will be shown instead of the tray icon's context menu.
Removes a tray balloon.
Sets the context menu for this icon.
Sets the option to ignore double click events. Ignoring these events allows you to detect every individual click of the tray icon.
Sets the image
associated with this tray icon.
Sets the image
associated with this tray icon when pressed on macOS.
Sets the title displayed next to the tray icon in the status bar (Support ANSI colors).
Sets the hover text for this tray icon.