get Group Preset
open fun getGroupPreset(@IntRange(from = ContextualToolbar.MIN_TOOLBAR_CAPACITY ) capacity: Int, itemsCount: Int): List<MenuItem>
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.
Return
Structured list of how items should be grouped.
Parameters
capacity
Number of spaces left on the toolbar for menu icons.
items Count
Number of items to fit.