SpeechRecognizer.SetRecognitionListener(IRecognitionListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.