initialize
fun initialize(iconPath: String, tooltip: String, onLeftClick: () -> Unit?, menuContent: TrayMenuBuilder.() -> Unit?)
Initializes the system tray with the specified parameters.
Parameters
icon Path
Path to the tray icon.
tooltip
Tooltip text for the icon.
on Left Click
Action to execute on left-click on the icon.
menu Content
Content of the tray menu.
Throws
Illegal State Exception
If the system does not support the tray.