MenuItem

open class MenuItem

Deprecated

Use com.pspdfkit.compose.toolbar.state.ToolbarPresetEntry instead — it carries the same (id, submenuIds) structure plus a stable string action id. Removed at the next major version.

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.