Activity.OpenContextMenu(View) Method

Definition

Programmatically opens the context menu for a particular view.

[Android.Runtime.Register("openContextMenu", "(Landroid/view/View;)V", "GetOpenContextMenu_Landroid_view_View_Handler")]
public virtual void OpenContextMenu (Android.Views.View? view);
[<Android.Runtime.Register("openContextMenu", "(Landroid/view/View;)V", "GetOpenContextMenu_Landroid_view_View_Handler")>]
abstract member OpenContextMenu : Android.Views.View -> unit
override this.OpenContextMenu : Android.Views.View -> unit

Parameters

view
View

The view to show the context menu for.

Attributes

Remarks

Programmatically opens the context menu for a particular view. The view should have been added via #registerForContextMenu(View).

Java documentation for android.app.Activity.openContextMenu(android.view.View).

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