From 4a2a4b1a45581ebe84caae9dd1031dae5b4c69d3 Mon Sep 17 00:00:00 2001 From: Josh Imbriani Date: Mon, 1 Jun 2020 09:50:27 -0700 Subject: [PATCH] Adding documentation to note new intent action changes coming with Android 11. Bug: 155091482 Test: Documentation changes - no test necessary Change-Id: I2472cd2f94d0dc1fac249f99cd91ae201b1f419b --- .../java/android/speech/tts/TextToSpeech.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index 895ce39b5369f..3fcb36193c604 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.
* 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 elements of their + * manifest: + * + * + * + * ... + * + * + * + * + * */ public class TextToSpeech { @@ -239,6 +252,20 @@ public class TextToSpeech { * through {@link TextToSpeech#getFeatures(java.util.Locale)}. * * + * + * Apps targeting Android 11 that use text-to-speech should declare {@link + * #INTENT_ACTION_TTS_SERVICE} in the elements of their + * manifest: + * + * + * + * ... + * + * + * + * + * + */ public class Engine {