Tray Menu Builder
interface TrayMenuBuilder
Interface for building tray menus in a platform-independent manner. Implementations of this interface allow the creation of tray menus with items, checkable items, submenus, and dividers, and provide a mechanism for disposing resources when the menu is no longer needed.
Inheritors
Functions
Link copied to clipboard
abstract fun CheckableItem(label: String, checked: Boolean = false, isEnabled: Boolean = true, onToggle: (Boolean) -> Unit)
Adds a checkable item to the tray menu.
Link copied to clipboard
abstract fun SubMenu(label: String, isEnabled: Boolean = true, submenuContent: TrayMenuBuilder.() -> Unit?)
Adds a submenu to the tray menu.