diff options
| -rw-r--r-- | api/current.xml | 11 | ||||
| -rw-r--r-- | core/java/android/speech/RecognizerIntent.java | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml index e17bce5402c3..1f3b5fd41853 100644 --- a/api/current.xml +++ b/api/current.xml @@ -180297,6 +180297,17 @@ visibility="public" > </field> +<field name="EXTRA_ORIGIN" + type="java.lang.String" + transient="false" + volatile="false" + value=""android.speech.extra.ORIGIN"" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> <field name="EXTRA_PARTIAL_RESULTS" type="java.lang.String" transient="false" 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 |