RaphaelWoude/capacitor-native-settings

tts settings added

Opened this issue · 0 comments

import android.content.ComponentName;
..
..
else if(action.equals("tts"))
{
if (android.os.Build.VERSION.SDK_INT >= 14)
{
intent = new Intent();
intent.setAction("com.android.settings.TTS_SETTINGS");
}
else
{
intent = new Intent();
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.setComponent(new ComponentName("com.android.settings", "com.android.settings.TextToSpeechSettings"));
}
}

,,,,,,,,,,,,,,,,,,,,,
TTS = "tts",

use->

 NativeSettings.openAndroid({
  option: AndroidSettings.TTS,
});