public interface

MenuBuilder.Callback

 androidx.appcompat.view.menu.MenuBuilder.Callback

Subclasses:

StandaloneActionMode, WindowDecorActionBar.ActionModeImpl

Overview

Called by menu to notify of close and selection changes.

Summary

Methods
public booleanonMenuItemSelected(MenuBuilder menu, MenuItem item)

Called when a menu item is selected.

public voidonMenuModeChange(MenuBuilder menu)

Called when the mode of the menu changes (for example, from icon to expanded).

Methods

public 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

public 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