Android Guides | Samples

Android.App.Dialog.OnCreateContextMenu Method

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

Syntax

[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")]
public virtual Void OnCreateContextMenu (IContextMenu menu, View v, IContextMenuContextMenuInfo menuInfo)

See Also

Parameters

menu
The context menu that is being built
v
The view for which the context menu is being built
menuInfo
Extra information about the item for which the context menu should be shown. This information will vary depending on the class of v.

Remarks

Called when the context menu for this view is being built. It is not safe to hold onto the menu after this method returns.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1