Compartir a través de


TouchInteractionController.PerformLongClickAndStartDrag Method

Definition

If AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE and If {@link AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled and at least one callback has been added, this function tells the framework to perform a long click.

[Android.Runtime.Register("performLongClickAndStartDrag", "()V", "", ApiSince=33)]
public void PerformLongClickAndStartDrag ();
[<Android.Runtime.Register("performLongClickAndStartDrag", "()V", "", ApiSince=33)>]
member this.PerformLongClickAndStartDrag : unit -> unit
Attributes

Remarks

If AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE and If {@link AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled and at least one callback has been added, this function tells the framework to perform a long click. The framework will simulate a long click using motion events on the last location with accessibility focus and will delegate any movements to the rest of the input pipeline. This allows a user to double-tap and hold to trigger a drag and then execute that drag by moving their finger.

Java documentation for android.accessibilityservice.TouchInteractionController.performLongClickAndStartDrag().

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