AccessibilityInfo API provides functionalty that allows you to query the current state of the screen reader and to register to be notified when the state of the screen reader changes.
Kepler support
To properly use this module, you app must request thecom.amazon.devconf.privilege.accessibility privilege in the manifest.toml file.
Implemented methods
addEventListener
Use theAccessibilityInfo.addEventListener to listen for accessibility events, such as when a screen reader is turned on or off. This helps make your apps more accessible by responding dynamically to user settings.
Supported events
Example usage
announceForAccessibility
Trigger an accessibility announcement for the screen reader. It programmatically announces the specified message to notify users of important changes in the app’s UI, such as status updates or alerts. The announcement isn’t associated with a specific UI element and is best for general notifications.Example usage
announceForAccessibilityWithOptions
TheannounceForAccessibilityWithOptions method extends the functionality of announceForAccessibility by allowing developers to customize the behavior of announcements such as waiting for existing announcements to complete before announcing a new message.
Example usage
Accepted values
true in the options object.
isScreenReaderEnabled
Use theisScreenReaderEnabled method to query whether a screen reader is currently enabled.
Returns a promise which resolves to a boolean. The result is true when a screen reader is enabled and false otherwise.

