次の方法で共有


AccessibilityService.SetGestureDetectionPassthroughRegion 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 gesture detector.

[Android.Runtime.Register("setGestureDetectionPassthroughRegion", "(ILandroid/graphics/Region;)V", "GetSetGestureDetectionPassthroughRegion_ILandroid_graphics_Region_Handler", ApiSince=30)]
public virtual void SetGestureDetectionPassthroughRegion (int displayId, Android.Graphics.Region region);
[<Android.Runtime.Register("setGestureDetectionPassthroughRegion", "(ILandroid/graphics/Region;)V", "GetSetGestureDetectionPassthroughRegion_ILandroid_graphics_Region_Handler", ApiSince=30)>]
abstract member SetGestureDetectionPassthroughRegion : int * Android.Graphics.Region -> unit
override this.SetGestureDetectionPassthroughRegion : 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 gesture detector. There can only be one gesture detection passthrough region per display. Requesting a new gesture detection passthrough 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.setGestureDetectionPassthroughRegion(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