Package icyllis.modernui.view.menu

# Interface MenuPresenter.Callback

Enclosing interface:
  `MenuPresenter`

public static interface MenuPresenter.Callback
Called by menu implementation to notify another component of open/close events.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing)`
  Called when a menu is closing.
  `boolean`
  `onOpenSubMenu(MenuBuilder subMenu)`
  Called when a submenu opens.

- ## Method Details

  - ### onCloseMenu

    void onCloseMenu(MenuBuilder menu, boolean allMenusAreClosing)
    Called when a menu is closing.

  - ### onOpenSubMenu

    boolean onOpenSubMenu(MenuBuilder subMenu)
    Called when a submenu opens. Useful for notifying the application of menu state so that it does not attempt to hide the action bar while a submenu is open or similar.
    Parameters:
      `subMenu` - Submenu currently being opened
    Returns:
      true if the Callback will handle presenting the submenu, false if the presenter should attempt to do so.