One of the most important functions of the accessibility service
configuration parameters is to allow you to specify what types of
accessibility events your service can handle. Being able to specify this
information enables accessibility services to cooperate with each
other, and allows you as a developer the flexibility to handle only
specific events types from specific applications. The event filtering
can include the following criteria:
When setting up your accessibility service, carefully consider what events your service is able to handle and only register for those events. Since users can activate more than one accessibility services at a time, your service must not consume events that it is not able to handle. Remember that other services may handle those events in order to improve a user's experience.
http://www.quontrasolutions.com/
- Package Names
- Specify the package names of applications whose accessibility events
you want your service to handle. If this parameter is omitted, your
accessibility service is considered available to service accessibility
events for any application. This parameter can be set in the
accessibility service configuration files with the
android:packageNamesattribute as a comma-separated list, or set using theAccessibilityServiceInfo.packageNamesmember.
- Event Types
- Specify the types of accessibility events you want your service to
handle. This parameter can be set in the accessibility service
configuration files with the
android:accessibilityEventTypesattribute as a list separated by the|character (for exampleaccessibilityEventTypes="typeViewClicked|typeViewFocused"), or set using theAccessibilityServiceInfo.eventTypesmember.
When setting up your accessibility service, carefully consider what events your service is able to handle and only register for those events. Since users can activate more than one accessibility services at a time, your service must not consume events that it is not able to handle. Remember that other services may handle those events in order to improve a user's experience.
http://www.quontrasolutions.com/
No comments:
Post a Comment