Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(public navCtrl: NavController, public navParams: NavParams) {
Plugins.Accessibility.addListener('accessibilityScreenReaderStateChange', ((state) => {
console.log('SCREEN READER STATE CHANGE', state.value);
}));
}
async speak() {
var value = await Plugins.Modals.prompt({
title: "Value to speak",
message: "Enter the value to speak"
});
Plugins.Accessibility.speak({
value: value.value
});
}
}