Sub Menu
Adds a submenu to the tray menu.
Parameters
The text label for the submenu.
Indicates whether the submenu is enabled. Defaults to true.
A lambda function defining the contents of the submenu. Can be null.
Adds a submenu to the tray menu with a Composable icon.
Parameters
The text label for the submenu.
A Composable function that defines the icon.
Properties for rendering the icon. Defaults to 16x16 for menu items.
Indicates whether the submenu is enabled. Defaults to true.
A lambda function defining the contents of the submenu. Can be null.
Adds a submenu to the tray menu with an ImageVector icon.
Parameters
The text label for the submenu.
The ImageVector to display as icon.
Optional tint color for the icon. If null, adapts to menu theme.
Properties for rendering the icon. Defaults to 16x16 for menu items.
Indicates whether the submenu is enabled. Defaults to true.
A lambda function defining the contents of the submenu. Can be null.
Adds a submenu to the tray menu with a Painter icon.
Parameters
The text label for the submenu.
The Painter to display as icon.
Properties for rendering the icon. Defaults to 16x16 for menu items.
Indicates whether the submenu is enabled. Defaults to true.
A lambda function defining the contents of the submenu. Can be null.
Adds a submenu to the tray menu with a DrawableResource icon. This allows calling code like: SubMenu(label, icon = Res.drawable.icon) { ... }