Package icyllis.modernui.view.menu

# Interface MenuBuilder.Callback

Enclosing class:
  `MenuBuilder`

public static interface MenuBuilder.Callback
Called by menu to notify of close and selection changes.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `onMenuItemSelected(MenuBuilder menu, MenuItem item)`
  Called when a menu item is selected.
  `void`
  `onMenuModeChange(MenuBuilder menu)`
  Called when the mode of the menu changes (for example, from icon to expanded).

- ## Method Details

  - ### onMenuItemSelected

    boolean onMenuItemSelected(MenuBuilder menu, MenuItem item)
    Called when a menu item is selected.
    Parameters:
      `menu` - The menu that is the parent of the item
      `item` - The menu item that is selected
    Returns:
      whether the menu item selection was handled

  - ### onMenuModeChange

    void onMenuModeChange(MenuBuilder menu)
    Called when the mode of the menu changes (for example, from icon to expanded).
    Parameters:
      `menu` - the menu that has changed modes