Sdílet prostřednictvím


View.IOnLongClickListener.OnLongClickUseDefaultHapticFeedback(View) Method

Definition

Returns whether the default HapticFeedbackConstants#LONG_PRESS haptic feedback is performed when this listener has consumed the long click.

[Android.Runtime.Register("onLongClickUseDefaultHapticFeedback", "(Landroid/view/View;)Z", "GetOnLongClickUseDefaultHapticFeedback_Landroid_view_View_Handler:Android.Views.View/IOnLongClickListener, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual bool OnLongClickUseDefaultHapticFeedback (Android.Views.View v);
[<Android.Runtime.Register("onLongClickUseDefaultHapticFeedback", "(Landroid/view/View;)Z", "GetOnLongClickUseDefaultHapticFeedback_Landroid_view_View_Handler:Android.Views.View/IOnLongClickListener, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnLongClickUseDefaultHapticFeedback : Android.Views.View -> bool
override this.OnLongClickUseDefaultHapticFeedback : Android.Views.View -> bool

Parameters

v
View

The view that was clicked and held.

Returns

true to perform the default HapticFeedbackConstants#LONG_PRESS haptic feedback, or false if the handler manages all haptics itself.

Attributes

Remarks

Returns whether the default HapticFeedbackConstants#LONG_PRESS haptic feedback is performed when this listener has consumed the long click. This method is called immediately after #onLongClick has returned true.

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