diff options
| author | Mike LeBeau <mlebeau@android.com> | 2011-04-05 16:38:24 -0400 |
|---|---|---|
| committer | Mike LeBeau <mlebeau@android.com> | 2011-04-05 16:38:24 -0400 |
| commit | 216ce0f16effec873938401d20687acd61d392fb (patch) | |
| tree | a1a863e65a18b8d6cf6181e6baf21ff126a0657d /core/java/android/speech/RecognizerIntent.java | |
| parent | bb7cf916b23c78dc640f8bdfb7ad5cd6b09c3636 (diff) | |
Add EXTRA_ORIGIN to RecognizerIntent.
This is for passing the http referer of a request, e.g., for speech
input from within a browser.
Bug: 4161306
Change-Id: I56fdb7466edd985aab6df8364be1f1619a11a00d
Diffstat (limited to 'core/java/android/speech/RecognizerIntent.java')
| -rw-r--r-- | core/java/android/speech/RecognizerIntent.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/speech/RecognizerIntent.java b/core/java/android/speech/RecognizerIntent.java index 3d25651af851..fd709f214bb7 100644 --- a/core/java/android/speech/RecognizerIntent.java +++ b/core/java/android/speech/RecognizerIntent.java @@ -100,6 +100,7 @@ public class RecognizerIntent { * <li>{@link #EXTRA_MAX_RESULTS} * <li>{@link #EXTRA_PARTIAL_RESULTS} * <li>{@link #EXTRA_WEB_SEARCH_ONLY} + * <li>{@link #EXTRA_ORIGIN} * </ul> * * <p> Result extras (returned in the result, not to be specified in the request): @@ -182,6 +183,13 @@ public class RecognizerIntent { * {@link java.util.Locale#getDefault()}. */ public static final String EXTRA_LANGUAGE = "android.speech.extra.LANGUAGE"; + + /** + * Optional value which can be used to indicate the referer url of a page in which + * speech was requested. For example, a web browser may choose to provide this for + * uses of speech on a given page. + */ + public static final String EXTRA_ORIGIN = "android.speech.extra.ORIGIN"; /** * Optional limit on the maximum number of results to return. If omitted the recognizer |
