How to use the @capacitor/core.Plugins.Accessibility function in @capacitor/core

To help you get started, we’ve selected a few @capacitor/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ionic-team / capacitor / example / src / pages / accessibility / accessibility.ts View on Github external
constructor(public navCtrl: NavController, public navParams: NavParams) {
    Plugins.Accessibility.addListener('accessibilityScreenReaderStateChange', ((state) => {
      console.log('SCREEN READER STATE CHANGE', state.value);
    }));
  }
github ionic-team / capacitor / example / src / pages / accessibility / accessibility.ts View on Github external
async speak() {
    var value = await Plugins.Modals.prompt({
      title: "Value to speak",
      message: "Enter the value to speak"
    });

    Plugins.Accessibility.speak({
      value: value.value
    });
  }
}