Share via


IRecognitionListener.OnResults(Bundle) Method

Definition

Called when recognition results are ready.

[Android.Runtime.Register("onResults", "(Landroid/os/Bundle;)V", "GetOnResults_Landroid_os_Bundle_Handler:Android.Speech.IRecognitionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnResults (Android.OS.Bundle? results);
[<Android.Runtime.Register("onResults", "(Landroid/os/Bundle;)V", "GetOnResults_Landroid_os_Bundle_Handler:Android.Speech.IRecognitionListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnResults : Android.OS.Bundle -> unit

Parameters

results
Bundle

the recognition results. To retrieve the results in ArrayList<String> format use Bundle#getStringArrayList(String) with SpeechRecognizer#RESULTS_RECOGNITION as a parameter. A float array of confidence values might also be given in SpeechRecognizer#CONFIDENCE_SCORES.

Attributes

Remarks

Called when recognition results are ready.

Called with the results for the full speech since #onReadyForSpeech(Bundle). To get recognition results in segments rather than for the full session see RecognizerIntent#EXTRA_SEGMENTED_SESSION.

Java documentation for android.speech.RecognitionListener.onResults(android.os.Bundle).

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