Interface PopupMenu.OnMenuItemClickListener

Enclosing class:
PopupMenu
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PopupMenu.OnMenuItemClickListener
Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method will be invoked when a menu item is clicked if the item itself did not already handle the event.
  • Method Details

    • onMenuItemClick

      boolean onMenuItemClick(MenuItem item)
      This method will be invoked when a menu item is clicked if the item itself did not already handle the event.
      Parameters:
      item - the menu item that was clicked
      Returns:
      true if the event was handled, false otherwise