Activity.UnregisterForContextMenu(View) Method

Definition

Prevents a context menu to be shown for the given view.

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

Parameters

view
View

The view that should stop showing a context menu.

Attributes

Remarks

Prevents a context menu to be shown for the given view. This method will remove the OnCreateContextMenuListener on the view.

Java documentation for android.app.Activity.unregisterForContextMenu(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

See also