Tray Menu Builder
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.
Functions
Adds a checkable item to the tray menu with the legacy API.
Adds a checkable item to the tray menu. This follows Compose's idiomatic pattern for stateful components.
Adds a checkable item to the tray menu with a DrawableResource icon. This allows calling code like: CheckableItem(label, icon = Res.drawable.icon, checked = ..., ...)
Adds a checkable item to the tray menu with a Painter icon.
Adds a checkable item to the tray menu with a Composable icon.
Adds a checkable item to the tray menu with an ImageVector icon.
Adds an item to the tray menu.
Adds an item to the tray menu with a DrawableResource icon. This allows calling code like: Item(label, icon = Res.drawable.icon, ...)
Adds an item to the tray menu with a Painter icon.
Adds an item to the tray menu with a Composable icon.
Adds an item to the tray menu with an ImageVector icon.
Adds a submenu to the tray menu.
Adds a submenu to the tray menu with a DrawableResource icon. This allows calling code like: SubMenu(label, icon = Res.drawable.icon) { ... }
Adds a submenu to the tray menu with a Painter icon.
Adds a submenu to the tray menu with a Composable icon.
Adds a submenu to the tray menu with an ImageVector icon.