AccessibilityService.SetTouchExplorationPassthroughRegion Method

Definition

When AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled, this function requests that touch interactions starting in the specified region of the screen bypass the touch explorer and go straight to the view hierarchy.

[Android.Runtime.Register("setTouchExplorationPassthroughRegion", "(ILandroid/graphics/Region;)V", "GetSetTouchExplorationPassthroughRegion_ILandroid_graphics_Region_Handler", ApiSince=30)]
public virtual void SetTouchExplorationPassthroughRegion (int displayId, Android.Graphics.Region region);
[<Android.Runtime.Register("setTouchExplorationPassthroughRegion", "(ILandroid/graphics/Region;)V", "GetSetTouchExplorationPassthroughRegion_ILandroid_graphics_Region_Handler", ApiSince=30)>]
abstract member SetTouchExplorationPassthroughRegion : int * Android.Graphics.Region -> unit
override this.SetTouchExplorationPassthroughRegion : int * Android.Graphics.Region -> unit

Parameters

displayId
Int32

The display on which to set this region.

region
Region

the region of the screen .

Attributes

Remarks

When AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE is enabled, this function requests that touch interactions starting in the specified region of the screen bypass the touch explorer and go straight to the view hierarchy. There can only be one touch exploration passthrough region per display. Requesting a new touch explorationpassthrough region clears the existing one. To disable this passthrough and return to the original behavior, pass in an empty region. When AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE is disabled this function has no effect.

Java documentation for android.accessibilityservice.AccessibilityService.setTouchExplorationPassthroughRegion(int, android.graphics.Region).

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