Share via


AdapterView.OnItemLongClickListener Property

Definition

Register a callback to be invoked when an item in this AdapterView has been clicked and held

public Android.Widget.AdapterView.IOnItemLongClickListener? OnItemLongClickListener { [Android.Runtime.Register("getOnItemLongClickListener", "()Landroid/widget/AdapterView$OnItemLongClickListener;", "")] get; [Android.Runtime.Register("setOnItemLongClickListener", "(Landroid/widget/AdapterView$OnItemLongClickListener;)V", "GetSetOnItemLongClickListener_Landroid_widget_AdapterView_OnItemLongClickListener_Handler")] set; }
[<get: Android.Runtime.Register("getOnItemLongClickListener", "()Landroid/widget/AdapterView$OnItemLongClickListener;", "")>]
[<set: Android.Runtime.Register("setOnItemLongClickListener", "(Landroid/widget/AdapterView$OnItemLongClickListener;)V", "GetSetOnItemLongClickListener_Landroid_widget_AdapterView_OnItemLongClickListener_Handler")>]
member this.OnItemLongClickListener : Android.Widget.AdapterView.IOnItemLongClickListener with get, set

Property Value

The callback to be invoked with an item in this AdapterView has been clicked and held, or null if no callback has been set.

Attributes

Remarks

Property getter documentation:

Java documentation for android.widget.AdapterView.getOnItemLongClickListener().

Property setter documentation:

Java documentation for android.widget.AdapterView.setOnItemLongClickListener(android.widget.OnItemLongClickListener).

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