Item
Adds an item to the tray menu.
Parameters
The text label for the menu item.
Indicates whether the menu item is enabled. Defaults to true.
Lambda function to be invoked when the menu item is clicked. Defaults to an empty lambda.
Adds an item to the tray menu with a Composable icon.
Parameters
The text label for the menu item.
A Composable function that defines the icon.
Properties for rendering the icon. Defaults to 16x16 for menu items.
Indicates whether the menu item is enabled. Defaults to true.
Lambda function to be invoked when the menu item is clicked. Defaults to an empty lambda.
Adds an item to the tray menu with an ImageVector icon.
Parameters
The text label for the menu item.
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 menu item is enabled. Defaults to true.
Lambda function to be invoked when the menu item is clicked. Defaults to an empty lambda.
Adds an item to the tray menu with a Painter icon.
Parameters
The text label for the menu item.
The Painter to display as icon.
Properties for rendering the icon. Defaults to 16x16 for menu items.
Indicates whether the menu item is enabled. Defaults to true.
Lambda function to be invoked when the menu item is clicked. Defaults to an empty lambda.
Adds an item to the tray menu with a DrawableResource icon. This allows calling code like: Item(label, icon = Res.drawable.icon, ...)