AccessibilityService.SetGestureDetectionPassthroughRegion 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
启用后 AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE ,此函数请求从屏幕的指定区域开始的触摸交互绕过手势检测器。
[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
参数
- displayId
- Int32
要设置该区域的显示。
- region
- Region
屏幕的区域。
- 特性
注解
启用后 AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE ,此函数请求从屏幕的指定区域开始的触摸交互绕过手势检测器。 每个显示只能有一个手势检测直通区域。 请求新的手势检测直通区域会清除现有手势检测区域。 若要禁用此传递并返回到原始行为,请传入空区域。 禁用此函数时 AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE 不起作用。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。