Condividi tramite


View.IOnLongClickListener.OnLongClick(View) Method

Definition

Called when a view has been clicked and held.

[Android.Runtime.Register("onLongClick", "(Landroid/view/View;)Z", "GetOnLongClick_Landroid_view_View_Handler:Android.Views.View/IOnLongClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnLongClick (Android.Views.View? v);
[<Android.Runtime.Register("onLongClick", "(Landroid/view/View;)Z", "GetOnLongClick_Landroid_view_View_Handler:Android.Views.View/IOnLongClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnLongClick : Android.Views.View -> bool

Parameters

v
View

The view that was clicked and held.

Returns

true if the callback consumed the long click, false otherwise.

Attributes

Remarks

Called when a view has been clicked and held.

Java documentation for android.view.View.OnLongClickListener.onLongClick(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