AccessibilityService 服务配置文件的内容详解(一)

在这里AccessibilityService还有几个属性没有介绍完。这里就简单看一下谷歌文档吧。找了好久才找到这些资料。


AccessibilityService_canControlMagnification

int AccessibilityService_canControlMagnification

Attribute whether the accessibility service wants to be able to control display magnification.属性是否可访问性服务希望能够控制放大显示。

Required to allow setting the #AccessibilityServiceInfo#FLAG_CAN_CONTROL_MAGNIFICATION flag.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

This corresponds to the global attribute resource symbol canControlMagnification.

Constant Value: 11 (0x0000000b)

AccessibilityService_canPerformGestures

int AccessibilityService_canPerformGestures

Attribute whether the accessibility service wants to be able to perform gestures.属性是否可访问性服务希望能够执行手势。

Required to allow setting the #AccessibilityServiceInfo#FLAG_CAN_PERFORM_GESTURES flag.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

This corresponds to the global attribute resource symbol canPerformGestures.

Constant Value: 12 (0x0000000c)

AccessibilityService_canRequestEnhancedWebAccessibility

int AccessibilityService_canRequestEnhancedWebAccessibility

Attribute whether the accessibility service wants to be able to request enhanced web accessibility enhancements. For example, installing scripts to make app content more accessible.属性是否可访问性服务希望能够请求增强web可访问性增强。例如,安装应用程序的脚本内容更容易。

Required to allow setting the #AccessibilityServiceInfo#FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY flag.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

This corresponds to the global attribute resource symbol canRequestEnhancedWebAccessibility.

Constant Value: 9 (0x00000009)

AccessibilityService_canRequestFilterKeyEvents

int AccessibilityService_canRequestFilterKeyEvents

Attribute whether the accessibility service wants to be able to request to filter key events.属性是否可访问性服务希望能够请求过滤关键事件。

Required to allow setting the #AccessibilityServiceInfo#FLAG_REQUEST_FILTER_KEY_EVENTS flag.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

This corresponds to the global attribute resource symbol canRequestFilterKeyEvents.

Constant Value: 10 (0x0000000a)

AccessibilityService_canRequestTouchExplorationMode

int AccessibilityService_canRequestTouchExplorationMode

Attribute whether the accessibility service wants to be able to request touch exploration mode in which touched items are spoken aloud and the UI can be explored via gestures.属性是否可访问性服务希望能够请求触摸勘探模式摸物品是大声说话和UI可以通过手势了。

Required to allow setting the #AccessibilityServiceInfo#FLAG_REQUEST_TOUCH_EXPLORATION_MODE flag.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

This corresponds to the global attribute resource symbol canRequestTouchExplorationMode.

Constant Value: 8 (0x00000008)

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值