Item

abstract fun Item(label: String, isEnabled: Boolean = true, onClick: () -> Unit = {})

Adds an item to the tray menu.

Parameters

label

The text label for the menu item.

isEnabled

Indicates whether the menu item is enabled. Defaults to true.

onClick

Lambda function to be invoked when the menu item is clicked. Defaults to an empty lambda.