Udostępnij za pośrednictwem


TouchInteractionController.RequestDragging(Int32) 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 initiate a dragging interaction using the specified pointer.

[Android.Runtime.Register("requestDragging", "(I)V", "", ApiSince=33)]
public void RequestDragging (int pointerId);
[<Android.Runtime.Register("requestDragging", "(I)V", "", ApiSince=33)>]
member this.RequestDragging : int -> unit

Parameters

pointerId
Int32

the pointer to be passed through to the rest of the input pipeline. If the pointer id is valid but not actually present on the screen it will be ignored.

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 initiate a dragging interaction using the specified pointer. The pointer's movements will be passed through to the rest of the input pipeline. Dragging is often used to perform two-finger scrolling.

Java documentation for android.accessibilityservice.TouchInteractionController.requestDragging(int).

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