public interface

Toolbar.OnMenuItemClickListener

 androidx.appcompat.widget.Toolbar.OnMenuItemClickListener

Overview

Interface responsible for receiving menu item click events if the items themselves do not have individual item click listeners.

Summary

Methods
public booleanonMenuItemClick(MenuItem item)

This method will be invoked when a menu item is clicked if the item itself did not already handle the event.

Methods

public 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: MenuItem that was clicked

Returns:

true if the event was handled, false otherwise.