TrayIcon
Tray icon class and associated methods. This type constructor is private, instead, you should use the static method {@linkcode TrayIcon.new}.
Warning
Unlike Rust, javascript does not have any way to run cleanup code when an object is being removed by garbage collection, but this tray icon will be cleaned up when the tauri app exists, however if you want to cleanup this object early, you need to call {@linkcode TrayIcon.close}.
Properties
Functions
Sets a new tray icon. If null is provided, it will remove the icon.
Sets the current icon as a template. macOS only
Disable or enable showing the tray menu on left click.
Disable or enable showing the tray menu on left click.
Sets the tray icon temp dir path. Linux only.
Sets the tooltip for this tray icon.
Show or hide this tray icon.