RaphaelWoude / capacitor-native-settings

Capacitor plugin to open native settings screens for android and iOS
MIT License
95 stars 30 forks source link

tts settings added #36

Open ulsoftnaver opened 1 year ago

ulsoftnaver commented 1 year ago

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,
});