Läs på engelska

Dela via


View.OnCreateContextMenu(IContextMenu) Method

Definition

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

C#
[Android.Runtime.Register("onCreateContextMenu", "(Landroid/view/ContextMenu;)V", "GetOnCreateContextMenu_Landroid_view_ContextMenu_Handler")]
protected virtual void OnCreateContextMenu (Android.Views.IContextMenu? menu);

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35