ToolbarPresetEntry

data class ToolbarPresetEntry(val id: Int, val actionId: String, val childIds: List<Int>? = null)

One entry of a capacity-keyed contextual-toolbar grouping preset: either a single item reference (childIds null) or a group whose children collapse into a ToolbarItem.Submenu.

The Compose successor to the legacy grouping/presets/MenuItem. Carries the group's stable actionId alongside the legacy id so a synthesized submenu participates in action dispatch and state save/restore like any other item (ADR-Toolbar-4). Custom presets should namespace their group action ids (e.g. "my.app.group.shapes"); pspdf.* is reserved for SDK items.

Constructors

Link copied to clipboard
constructor(id: Int, actionId: String, childIds: List<Int>? = null)

Properties

Link copied to clipboard

Stable string identity for a synthesized group; unused for single item references.

Link copied to clipboard

Ids of the items grouped into a submenu, or null for a single item reference.

Link copied to clipboard
@get:IdRes
val id: Int

Resource id of the referenced item, or of the group when childIds is set.