summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorJosh Imbriani <joshimbriani@google.com>2020-06-01 09:50:27 -0700
committerKevin Hufnagle <khufnagle@google.com>2020-07-17 19:34:13 +0000
commita66e4ad7c24fa567e7ee23f4460f89c682edf03f (patch)
treecc7557869e10b075f839ce12c19fc22ccdb0b1e7 /core/java
parent94df0317183f1ddb7610ab65ca82349049a8bcb9 (diff)
Adding documentation to note new intent action changes coming with
Android 11. Bug: 155091482 Test: Documentation changes - no test necessary Change-Id: I2472cd2f94d0dc1fac249f99cd91ae201b1f419b (cherry picked from commit 4a2a4b1a45581ebe84caae9dd1031dae5b4c69d3)
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/speech/tts/TextToSpeech.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java
index c861fa774de8..408e8504f408 100644
--- a/core/java/android/speech/tts/TextToSpeech.java
+++ b/core/java/android/speech/tts/TextToSpeech.java
@@ -60,6 +60,19 @@ import java.util.Set;
* notified of the completion of the initialization.<br>
* When you are done using the TextToSpeech instance, call the {@link #shutdown()} method
* to release the native resources used by the TextToSpeech engine.
+ *
+ * Apps targeting Android 11 that use text-to-speech should declare {@link
+ * TextToSpeech.Engine#INTENT_ACTION_TTS_SERVICE} in the <code><queries></code> elements of their
+ * manifest:
+ *
+ * <code>
+ * <queries>
+ * ...
+ * <intent>
+ * <action android:name="android.intent.action.TTS_SERVICE" />
+ * </intent>
+ * </queries>
+ * </code>
*/
public class TextToSpeech {
@@ -239,6 +252,20 @@ public class TextToSpeech {
* through {@link TextToSpeech#getFeatures(java.util.Locale)}.
* </li>
* </ul>
+ *
+ * Apps targeting Android 11 that use text-to-speech should declare {@link
+ * #INTENT_ACTION_TTS_SERVICE} in the <code><queries></code> elements of their
+ * manifest:
+ *
+ * <code>
+ * <queries>
+ * ...
+ * <intent>
+ * <action android:name="android.intent.action.TTS_SERVICE" />
+ * </intent>
+ * </queries>
+ * </code>
+
*/
public class Engine {