Freigeben über


PopupMenu.SetOnMenuItemClickListener Method

Definition

Sets a listener that will be notified when the user selects an item from the menu.

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

Parameters

listener
PopupMenu.IOnMenuItemClickListener

the listener to notify

Attributes

Remarks

Java documentation for android.widget.PopupMenu.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