RecognitionService.OnStartListening 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.
Notifies the service that it should start listening for speech.
[Android.Runtime.Register("onStartListening", "(Landroid/content/Intent;Landroid/speech/RecognitionService$Callback;)V", "GetOnStartListening_Landroid_content_Intent_Landroid_speech_RecognitionService_Callback_Handler")]
protected abstract void OnStartListening (Android.Content.Intent? recognizerIntent, Android.Speech.RecognitionService.Callback? listener);
[<Android.Runtime.Register("onStartListening", "(Landroid/content/Intent;Landroid/speech/RecognitionService$Callback;)V", "GetOnStartListening_Landroid_content_Intent_Landroid_speech_RecognitionService_Callback_Handler")>]
abstract member OnStartListening : Android.Content.Intent * Android.Speech.RecognitionService.Callback -> unit
Parameters
- recognizerIntent
- Intent
contains parameters for the recognition to be performed. The intent
may also contain optional extras, see RecognizerIntent
. If these values are
not set explicitly, default values should be used by the recognizer.
- listener
- RecognitionService.Callback
that will receive the service's callbacks
- Attributes
Remarks
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.