facebook/react-native

Android: Installed services

Open

#30,864 创建于 2021年2月3日

在 GitHub 查看
 (5 评论) (1 反应) (1 负责人)C++ (125,808 star) (25,149 fork)batch import
AccessibilityAccessibility Team - EvaluatedGood first issueNeeds: Docs Website PRPlatform: Android

描述

Requires API Proposal

This issue may require a new API, or a change to an existing API. An API proposal should be added and discussed before proceeding with implementation. The API proposal can be added in the comments of this issue or linked as a separate issue.

This issue has a parent issue #31346 and is intertwined with #30863 & #30862. Please review those issues before working on this one.

Description

Sometimes it is useful to query what accessibility services a user has installed so that you can tailor your app's UI for potential changes that may be necessary if those services are enabled. For example, if a user has the "Select to speak" service installed, you may want to present your UI in an easier-to-select layout with more padding between elements, and only trigger that change when the service is enabled.

React Native version:

v0.63

Expected Behavior

The AccessibilityInfo API should have a way to query a list of installed accessibility services.

Android Details

This functionality is available on the AccessibilityManager class via the getInstalledAccessibilityServiceList method. https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getInstalledAccessibilityServiceList()

贡献者指南