Share via


Toolbar.SetOnMenuItemClickListener(Toolbar+IOnMenuItemClickListener) Method

Definition

Set a listener to respond to menu item click events.

[Android.Runtime.Register("setOnMenuItemClickListener", "(Landroid/widget/Toolbar$OnMenuItemClickListener;)V", "GetSetOnMenuItemClickListener_Landroid_widget_Toolbar_OnMenuItemClickListener_Handler")]
public virtual void SetOnMenuItemClickListener (Android.Widget.Toolbar.IOnMenuItemClickListener? listener);
[<Android.Runtime.Register("setOnMenuItemClickListener", "(Landroid/widget/Toolbar$OnMenuItemClickListener;)V", "GetSetOnMenuItemClickListener_Landroid_widget_Toolbar_OnMenuItemClickListener_Handler")>]
abstract member SetOnMenuItemClickListener : Android.Widget.Toolbar.IOnMenuItemClickListener -> unit
override this.SetOnMenuItemClickListener : Android.Widget.Toolbar.IOnMenuItemClickListener -> unit

Parameters

listener
Toolbar.IOnMenuItemClickListener

Listener to set

Attributes

Remarks

Java documentation for android.widget.Toolbar.setOnMenuItemClickListener(android.widget.OnMenuItemClickListener).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to