Udostępnij za pośrednictwem


View.SetOnCreateContextMenuListener(View+IOnCreateContextMenuListener) Method

Definition

Register a callback to be invoked when the context menu for this view is being built.

[Android.Runtime.Register("setOnCreateContextMenuListener", "(Landroid/view/View$OnCreateContextMenuListener;)V", "GetSetOnCreateContextMenuListener_Landroid_view_View_OnCreateContextMenuListener_Handler")]
public virtual void SetOnCreateContextMenuListener (Android.Views.View.IOnCreateContextMenuListener? l);
[<Android.Runtime.Register("setOnCreateContextMenuListener", "(Landroid/view/View$OnCreateContextMenuListener;)V", "GetSetOnCreateContextMenuListener_Landroid_view_View_OnCreateContextMenuListener_Handler")>]
abstract member SetOnCreateContextMenuListener : Android.Views.View.IOnCreateContextMenuListener -> unit
override this.SetOnCreateContextMenuListener : Android.Views.View.IOnCreateContextMenuListener -> unit

Parameters

l
View.IOnCreateContextMenuListener

The callback that will run

Attributes

Remarks

Java documentation for android.view.View.setOnCreateContextMenuListener(android.view.OnCreateContextMenuListener).

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