Condividi tramite


GestureDetector.IsLongpressEnabled Property

Definition

Set whether longpress is enabled, if this is enabled when a user presses and holds down you get a longpress event and nothing further.

public virtual bool IsLongpressEnabled { [Android.Runtime.Register("isLongpressEnabled", "()Z", "GetIsLongpressEnabledHandler")] get; [Android.Runtime.Register("setIsLongpressEnabled", "(Z)V", "GetSetIsLongpressEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isLongpressEnabled", "()Z", "GetIsLongpressEnabledHandler")>]
[<set: Android.Runtime.Register("setIsLongpressEnabled", "(Z)V", "GetSetIsLongpressEnabled_ZHandler")>]
member this.IsLongpressEnabled : bool with get, set

Property Value

true if longpress is enabled, else false.

Attributes

Remarks

Property getter documentation:

Java documentation for android.view.GestureDetector.isLongpressEnabled().

Property setter documentation:

Set whether longpress is enabled, if this is enabled when a user presses and holds down you get a longpress event and nothing further. If it's disabled the user can press and hold down and then later moved their finger and you will get scroll events. By default longpress is enabled.

Java documentation for android.view.GestureDetector.setIsLongpressEnabled(boolean).

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