Compartir a través de


SpeechRecognizer.SetRecognitionListener(IRecognitionListener) Method

Definition

Sets the listener that will receive all the callbacks.

[Android.Runtime.Register("setRecognitionListener", "(Landroid/speech/RecognitionListener;)V", "GetSetRecognitionListener_Landroid_speech_RecognitionListener_Handler")]
public virtual void SetRecognitionListener (Android.Speech.IRecognitionListener? listener);
[<Android.Runtime.Register("setRecognitionListener", "(Landroid/speech/RecognitionListener;)V", "GetSetRecognitionListener_Landroid_speech_RecognitionListener_Handler")>]
abstract member SetRecognitionListener : Android.Speech.IRecognitionListener -> unit
override this.SetRecognitionListener : Android.Speech.IRecognitionListener -> unit

Parameters

listener
IRecognitionListener

listener that will receive all the callbacks from the created SpeechRecognizer, this must not be null.

Attributes

Remarks

Sets the listener that will receive all the callbacks. The previous unfinished commands will be executed with the old listener, while any following command will be executed with the new listener.

Java documentation for android.speech.SpeechRecognizer.setRecognitionListener(android.speech.RecognitionListener).

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