View.OnCreateContextMenu(IContextMenu) Method
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
- menu
- IContextMenu
the context menu to populate
- Attributes
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.
Produkt | Versioner |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |