Condividi tramite


AccessibilityService.GetTouchInteractionController(Int32) Method

Definition

Returns the touch interaction controller for the specified logical display, which may be used to detect gestures and otherwise control touch interactions.

[Android.Runtime.Register("getTouchInteractionController", "(I)Landroid/accessibilityservice/TouchInteractionController;", "", ApiSince=33)]
public Android.AccessibilityServices.TouchInteractionController GetTouchInteractionController (int displayId);
[<Android.Runtime.Register("getTouchInteractionController", "(I)Landroid/accessibilityservice/TouchInteractionController;", "", ApiSince=33)>]
member this.GetTouchInteractionController : int -> Android.AccessibilityServices.TouchInteractionController

Parameters

displayId
Int32

The logical display id, use Display#DEFAULT_DISPLAY for default display.

Returns

the TouchExploration controller

Attributes

Remarks

Returns the touch interaction controller for the specified logical display, which may be used to detect gestures and otherwise control touch interactions. If AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE is disabled the controller's methods will have no effect.

Java documentation for android.accessibilityservice.AccessibilityService.getTouchInteractionController(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