Class AnnotationEditingToolbarGroupingRule
-
- All Implemented Interfaces:
-
com.pspdfkit.ui.toolbar.grouping.MenuItemGroupingRule
public class AnnotationEditingToolbarGroupingRule extends PresetMenuItemGroupingRule
Default grouping rule of the AnnotationEditingToolbar.
-
-
Constructor Summary
Constructors Constructor Description AnnotationEditingToolbarGroupingRule(Context context)
-
Method Summary
Modifier and Type Method Description List<MenuItem>
getGroupPreset(@IntRange(from = ContextualToolbar.MIN_TOOLBAR_CAPACITY) int capacity, int itemsCount)
Implementation of this method should return desired preset (structured list of menu items) based on the provided capacity (space left on the toolbar) and the amount of items that needs to be fitted. -
-
Constructor Detail
-
AnnotationEditingToolbarGroupingRule
AnnotationEditingToolbarGroupingRule(Context context)
-
-
Method Detail
-
getGroupPreset
@NonNull() List<MenuItem> getGroupPreset(@IntRange(from = ContextualToolbar.MIN_TOOLBAR_CAPACITY) int capacity, int itemsCount)
Implementation of this method should return desired preset (structured list of menu items) based on the provided capacity (space left on the toolbar) and the amount of items that needs to be fitted.
- Parameters:
capacity
- Number of spaces left on the toolbar for menu icons.itemsCount
- Number of items to fit.- Returns:
Structured list of how items should be grouped.
-
-
-
-