MenuItem

open class MenuItem

Class representation of the menu item in the structure. If there's a defined submenu list, the item is a group. Implementations of MenuItemGroupingRule can use these to construct groups from provided flat items (matched by the id).

Constructors

Link copied to clipboard
constructor(id: Int)
Constructor for single menu item.
constructor(id: Int, @Nullable submenuIds: Array<Int>)
Constructor for menu item group.

Properties

Link copied to clipboard
val id: Int
The resource ID of this menu item.
Link copied to clipboard
Array of submenu item IDs if this is a group, or null if this is a single item.