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
Link copied to clipboard
Link copied to clipboard
Sets the current icon as a template. macOS only
Link copied to clipboard
Disable or enable showing the tray menu on left click.
Link copied to clipboard
Disable or enable showing the tray menu on left click.
Link copied to clipboard
Sets the tray icon temp dir path. Linux only.
Link copied to clipboard
Sets the tooltip for this tray icon.
Link copied to clipboard
Show or hide this tray icon.