次の方法で共有


RecognitionService.OnStartListening Method

Definition

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

Java documentation for android.speech.RecognitionService.onStartListening(android.content.Intent, android.speech.Callback).

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