Aracılığıyla paylaş


View.IOnCreateContextMenuListener.OnCreateContextMenu Method

Definition

Called when the context menu for this view is being built.

[Android.Runtime.Register("onCreateContextMenu", "(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)V", "GetOnCreateContextMenu_Landroid_view_ContextMenu_Landroid_view_View_Landroid_view_ContextMenu_ContextMenuInfo_Handler:Android.Views.View/IOnCreateContextMenuListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnCreateContextMenu (Android.Views.IContextMenu? menu, Android.Views.View? v, Android.Views.IContextMenuContextMenuInfo? menuInfo);
[<Android.Runtime.Register("onCreateContextMenu", "(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)V", "GetOnCreateContextMenu_Landroid_view_ContextMenu_Landroid_view_View_Landroid_view_ContextMenu_ContextMenuInfo_Handler:Android.Views.View/IOnCreateContextMenuListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnCreateContextMenu : Android.Views.IContextMenu * Android.Views.View * Android.Views.IContextMenuContextMenuInfo -> unit

Parameters

menu
IContextMenu

The context menu that is being built

v
View

The view for which the context menu is being built

menuInfo
IContextMenuContextMenuInfo

Extra information about the item for which the context menu should be shown. This information will vary depending on the class of v.

Attributes

Remarks

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