diff options
| author | 2010-03-08 09:41:10 -0800 | |
|---|---|---|
| committer | 2010-03-08 09:41:10 -0800 | |
| commit | 08d5b1fdefef9ebb52906fd034040008001c94c3 (patch) | |
| tree | 871635f10e7720d3fb86d62cbcb19d25f65e20aa | |
| parent | c22415f3dac74ce62699bbc7878b24150bb32a92 (diff) | |
| parent | 2ffa625a2ad57614e0a963899669ee542d1ca988 (diff) | |
Merge "Adding support for passing HTTP headers to a Browser"
| -rw-r--r-- | core/java/android/speech/RecognizerResultsIntent.java | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/core/java/android/speech/RecognizerResultsIntent.java b/core/java/android/speech/RecognizerResultsIntent.java index 228258ee1580..4997d5046b46 100644 --- a/core/java/android/speech/RecognizerResultsIntent.java +++ b/core/java/android/speech/RecognizerResultsIntent.java @@ -16,6 +16,8 @@ package android.speech; +import android.os.Bundle; + import java.util.ArrayList; /** @@ -119,7 +121,22 @@ public class RecognizerResultsIntent { */ public static final String EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLS = "android.speech.extras.VOICE_SEARCH_RESULT_HTML_BASE_URLS"; - + + /** + * The key to an extra {@link ArrayList} of {@link Bundle}s that contains key/value pairs. + * All the values and the keys are {@link String}s. Each key/value pair represents an extra HTTP + * header. The keys can't be the standard HTTP headers as they are set by the WebView. + * + * A list of size 1 may be provided to apply the same HTTP headers to all html results. A list + * of the same size as {@link #EXTRA_VOICE_SEARCH_RESULT_STRINGS} may be provided to apply + * different HTTP headers to each different html result in the + * {@link #EXTRA_VOICE_SEARCH_RESULT_HTML} list. + * + * @hide not to be exposed immediately as the implementation details may change + */ + public static final String EXTRA_VOICE_SEARCH_RESULT_HTTP_HEADERS = + "android.speech.extras.EXTRA_VOICE_SEARCH_RESULT_HTTP_HEADERS"; + /** * The scheme used currently for html content in {@link #EXTRA_VOICE_SEARCH_RESULT_HTML}. * |