在这里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)