Fix bug 2022435.

Add new intent and matching extra to signal the completion of the
language pack installer. This is used by CL 20513.
This commit is contained in:
Jean-Michel Trivi
2009-08-07 17:26:36 -07:00
parent e6034f6cd8
commit 77a5d39343

View File

@@ -188,6 +188,12 @@ public class TextToSpeech {
public static final String ACTION_INSTALL_TTS_DATA =
"android.speech.tts.engine.INSTALL_TTS_DATA";
/**
* {@hide}
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_TTS_DATA_INSTALLED =
"android.speech.tts.engine.TTS_DATA_INSTALLED";
/**
* Broadcast Action: Starts the activity from the platform Text-To-Speech
* engine to verify the proper installation and availability of the
@@ -233,6 +239,16 @@ public class TextToSpeech {
*/
public static final String EXTRA_VOICE_DATA_FILES_INFO = "dataFilesInfo";
// extras for a TTS engine's data installation
/**
* Extra information received with the {@link #ACTION_TTS_DATA_INSTALLED} intent
* which indicates whether the TTS data installation requested with
* {@link #ACTION_INSTALL_TTS_DATA} completed successfully or not. The value is
* {@link TextToSpeech#SUCCESS} or {@link TextToSpeech#ERROR}.
* {@hide}
*/
public static final String EXTRA_TTS_DATA_INSTALLED = "dataInstalled";
// keys for the parameters passed with speak commands. Hidden keys are used internally
// to maintain engine state for each TextToSpeech instance.
/**