on Menu Items Grouped
open fun onMenuItemsGrouped(@NonNull menuItems: List<ContextualToolbarMenuItem>): List<ContextualToolbarMenuItem>
A method called once the flat items provided through setMenuItems have been grouped by the MenuItemGroupingRule that can be set with setMenuItemGroupingRule and with DefaultMenuItemGroupingRule as the default one.
By overriding this method you can do final editing before items are added to the toolbar.
Return
Menu items to be set on the toolbar.
Parameters
menu Items
Grouped menu items.