TrayIconOptions

external interface TrayIconOptions(source)

{@link TrayIcon.new|TrayIcon} creation options

Properties

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

A handler for an event on the tray icon.

Link copied to clipboard
abstract var icon: Any?

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

Link copied to clipboard
abstract var iconAsTemplate: Boolean?

Use the icon as a template. macOS only.

Link copied to clipboard
abstract var id: String?

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

Link copied to clipboard
abstract var menu: Any?

The tray icon menu

Link copied to clipboard
abstract var menuOnLeftClick: Boolean?

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

Link copied to clipboard

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

Link copied to clipboard
abstract var tempDirPath: String?

The tray icon temp dir path. Linux only.

Link copied to clipboard
abstract var title: String?

The tray title

Link copied to clipboard
abstract var tooltip: String?

The tray icon tooltip