Preset Menu Item Grouping Rule
Deprecated
The Compose contextual toolbar keeps honoring getGroupPreset through a bridge, so existing subclasses continue to work for one major version. Migrate to com.pspdfkit.compose.toolbar.state.ContextualToolbarGroupingProvider with com.pspdfkit.compose.toolbar.state.ToolbarPresetEntry — the contracts map 1:1. Removed at the next major version.
Menu item grouping rule to be extended by those rules that have predefined (preset) groups.
Inheritors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
open fun groupMenuItems(@NonNull flatItems: List<ContextualToolbarMenuItem>, @IntRange(from = 4 ) capacity: Int): List<ContextualToolbarMenuItem>
Performs grouping of the provided list of menu items based on the available toolbar capacity, meaning the max number of items it can fit.