View.OnCreateContextMenu(IContextMenu) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.