Mobile Accessibility

Contents

This plugin exposes information on the status of various accessibility features of mobile operating systems, including, for example, whether a screen reader is running, invert colors is enabled, and the preferred scaling for text. It also allows an application to send a string to be spoken by the screen reader, or a command to stop the screen reader from speaking.

https://github.com/phonegap/phonegap-mobile-accessibility

Ionic Mobile Accessibility插件的安装(Installation)

ionic cordova plugin add phonegap-plugin-mobile-accessibility npm install @ionic-native/mobile-accessibility

Ionic Mobile Accessibility插件支持的平台(Supported Platforms)

  • Android Fire OS
  • Android
  • iOS
  • Windows

Ionic Mobile Accessibility插件的用法(Usage)

import { MobileAccessibility } from '@ionic-native/mobile-accessibility';


constructor(private mobileAccessibility: MobileAccessibility) { }

...

if(this.mobileAccessibility.isScreenReaderRunningCallback();