Udostępnij za pośrednictwem


RecognizerResultsIntent.ExtraVoiceSearchResultHtml Field

Definition

The key to an extra ArrayList of Strings that contains the html content to use, if available, for the recognition alternates provided in #EXTRA_VOICE_SEARCH_RESULT_STRINGS.

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

Field Value

Attributes

Remarks

The key to an extra ArrayList of Strings that contains the html content to use, if available, for the recognition alternates provided in #EXTRA_VOICE_SEARCH_RESULT_STRINGS. This list should always be the same size as the one provided in #EXTRA_VOICE_SEARCH_RESULT_STRINGS - if a result cannot provide html, that entry in this list should be null, and the implementor of #ACTION_VOICE_SEARCH_RESULTS should back off to the corresponding url provided in #EXTRA_VOICE_SEARCH_RESULT_URLS, if available, or else should execute a search of its own choosing, based on the recognition result string.

Currently this html content should be expected in the form of a uri with scheme #URI_SCHEME_INLINE for the Browser. In the future this may change to a "content://" uri or some other identifier. Anyone who reads this extra should confirm that a result is in fact an "inline:" uri and back off to the urls or strings gracefully if it is not, thus maintaining future backwards compatibility if this changes.

Java documentation for android.speech.RecognizerResultsIntent.EXTRA_VOICE_SEARCH_RESULT_HTML.

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