Tray
@Composable
Configures and displays a system tray icon for the application with platform-specific behavior and menu options.
Parameters
icon Path
The file path to the tray icon. This should be a valid image file compatible with the platform's tray requirements.
windows Icon Path
The file path to the tray icon specifically for Windows. Defaults to the value of iconPath
.
tooltip
The tooltip text to be displayed when the user hovers over the tray icon.
primary Action
An optional callback to be invoked when the tray icon is clicked (handled only on specific platforms).
primary Action Linux Label
The label for the primary action on Linux. Defaults to "Open".
menu Content
A lambda that builds the tray menu using a TrayMenuBuilder
. Define the menu structure, including items, checkable items, dividers, and submenus.