Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 216ce0f1 authored by Mike LeBeau's avatar Mike LeBeau
Browse files

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
parent bb7cf916
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -180297,6 +180297,17 @@
 visibility="public"
>
</field>
<field name="EXTRA_ORIGIN"
 type="java.lang.String"
 transient="false"
 volatile="false"
 value="&quot;android.speech.extra.ORIGIN&quot;"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="EXTRA_PARTIAL_RESULTS"
 type="java.lang.String"
 transient="false"
+8 −0
Original line number Diff line number Diff line
@@ -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):
@@ -183,6 +184,13 @@ public class RecognizerIntent {
     */
    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
     * will choose how many results to return. Must be an integer.