Properties
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.
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.