TrayIconOptions

external interface TrayIconOptions(source)

{@link TrayIcon.new|TrayIcon} creation options

Properties

Link copied to clipboard
abstract external var action: (TrayIconEvent) -> Unit?

A handler for an event on the tray icon.

Link copied to clipboard
abstract external var icon: Any?

The tray icon which could be icon bytes or path to the icon file.

Link copied to clipboard
abstract external var iconAsTemplate: Boolean?

Use the icon as a template. macOS only.

Link copied to clipboard
abstract external var id: String?

The tray icon id. If undefined, a random one will be assigned

Link copied to clipboard
abstract external var menu: Any?

The tray icon menu

Link copied to clipboard
abstract external var menuOnLeftClick: Boolean?

Whether to show the tray menu on left click or not, default is true.

Link copied to clipboard
abstract external var showMenuOnLeftClick: Boolean?

Whether to show the tray menu on left click or not, default is true.

Link copied to clipboard
abstract external var tempDirPath: String?

The tray icon temp dir path. Linux only.

Link copied to clipboard
abstract external var title: String?

The tray title

Link copied to clipboard
abstract external var tooltip: String?

The tray icon tooltip