Sdílet prostřednictvím


View.OnCreateContextMenu(IContextMenu) Method

Definition

Views should implement this if the view itself is going to add items to the context menu.

[Android.Runtime.Register("onCreateContextMenu", "(Landroid/view/ContextMenu;)V", "GetOnCreateContextMenu_Landroid_view_ContextMenu_Handler")]
protected virtual void OnCreateContextMenu (Android.Views.IContextMenu? menu);
[<Android.Runtime.Register("onCreateContextMenu", "(Landroid/view/ContextMenu;)V", "GetOnCreateContextMenu_Landroid_view_ContextMenu_Handler")>]
abstract member OnCreateContextMenu : Android.Views.IContextMenu -> unit
override this.OnCreateContextMenu : Android.Views.IContextMenu -> unit

Parameters

menu
IContextMenu

the context menu to populate

Attributes

Remarks

Views should implement this if the view itself is going to add items to the context menu.

Java documentation for android.view.View.onCreateContextMenu(android.view.ContextMenu).

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