다음을 통해 공유


RecognizerResultsIntent.ActionVoiceSearchResults Field

Definition

Intent that can be sent by implementations of voice search to display the results of a search in, for example, a web browser.

[Android.Runtime.Register("ACTION_VOICE_SEARCH_RESULTS")]
public const string ActionVoiceSearchResults;
[<Android.Runtime.Register("ACTION_VOICE_SEARCH_RESULTS")>]
val mutable ActionVoiceSearchResults : string

Field Value

Attributes

Remarks

Intent that can be sent by implementations of voice search to display the results of a search in, for example, a web browser.

This intent should always be accompanied by at least #EXTRA_VOICE_SEARCH_RESULT_STRINGS, and optionally but recommended, #EXTRA_VOICE_SEARCH_RESULT_URLS, and sometimes #EXTRA_VOICE_SEARCH_RESULT_HTML and #EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLS.

These are parallel arrays, where a recognition result string at index N of #EXTRA_VOICE_SEARCH_RESULT_STRINGS should be accompanied by a url to use for searching based on that string at index N of #EXTRA_VOICE_SEARCH_RESULT_URLS, and, possibly, the full html to display for that result at index N of #EXTRA_VOICE_SEARCH_RESULT_HTML. If full html is provided, a base url (or list of base urls) should be provided with #EXTRA_VOICE_SEARCH_RESULT_HTML_BASE_URLS.

Java documentation for android.speech.RecognizerResultsIntent.ACTION_VOICE_SEARCH_RESULTS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to