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 and remove the tray early, you need to call {@linkcode TrayIcon.close}.
Properties
Functions
Sets the current icon as a template. macOS only
Sets a new tray icon and template status atomically. 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, shown when the cursor hovers it.
Show or hide this tray icon.