RecognitionService.OnCheckRecognitionSupport 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.
Overloads
| Name | Description |
|---|---|
| OnCheckRecognitionSupport(Intent, RecognitionService+SupportCallback) | |
| OnCheckRecognitionSupport(Intent, AttributionSource, RecognitionService+SupportCallback) |
Checks whether the service supports starting recognition with an intent. |
OnCheckRecognitionSupport(Intent, RecognitionService+SupportCallback)
[Android.Runtime.Register("onCheckRecognitionSupport", "(Landroid/content/Intent;Landroid/speech/RecognitionService$SupportCallback;)V", "GetOnCheckRecognitionSupport_Landroid_content_Intent_Landroid_speech_RecognitionService_SupportCallback_Handler", ApiSince=33)]
public virtual void OnCheckRecognitionSupport(Android.Content.Intent recognizerIntent, Android.Speech.RecognitionService.SupportCallback supportCallback);
[<Android.Runtime.Register("onCheckRecognitionSupport", "(Landroid/content/Intent;Landroid/speech/RecognitionService$SupportCallback;)V", "GetOnCheckRecognitionSupport_Landroid_content_Intent_Landroid_speech_RecognitionService_SupportCallback_Handler", ApiSince=33)>]
abstract member OnCheckRecognitionSupport : Android.Content.Intent * Android.Speech.RecognitionService.SupportCallback -> unit
override this.OnCheckRecognitionSupport : Android.Content.Intent * Android.Speech.RecognitionService.SupportCallback -> unit
Parameters
- recognizerIntent
- Intent
- supportCallback
- RecognitionService.SupportCallback
- Attributes
Applies to
OnCheckRecognitionSupport(Intent, AttributionSource, RecognitionService+SupportCallback)
Checks whether the service supports starting recognition with an intent.
[Android.Runtime.Register("onCheckRecognitionSupport", "(Landroid/content/Intent;Landroid/content/AttributionSource;Landroid/speech/RecognitionService$SupportCallback;)V", "GetOnCheckRecognitionSupport_Landroid_content_Intent_Landroid_content_AttributionSource_Landroid_speech_RecognitionService_SupportCallback_Handler", ApiSince=34)]
public virtual void OnCheckRecognitionSupport(Android.Content.Intent recognizerIntent, Android.Content.AttributionSource attributionSource, Android.Speech.RecognitionService.SupportCallback supportCallback);
[<Android.Runtime.Register("onCheckRecognitionSupport", "(Landroid/content/Intent;Landroid/content/AttributionSource;Landroid/speech/RecognitionService$SupportCallback;)V", "GetOnCheckRecognitionSupport_Landroid_content_Intent_Landroid_content_AttributionSource_Landroid_speech_RecognitionService_SupportCallback_Handler", ApiSince=34)>]
abstract member OnCheckRecognitionSupport : Android.Content.Intent * Android.Content.AttributionSource * Android.Speech.RecognitionService.SupportCallback -> unit
override this.OnCheckRecognitionSupport : Android.Content.Intent * Android.Content.AttributionSource * Android.Speech.RecognitionService.SupportCallback -> unit
Parameters
- recognizerIntent
- Intent
The intent describing the recognition request to evaluate.
- attributionSource
- AttributionSource
The attribution source for the calling application.
- supportCallback
- RecognitionService.SupportCallback
The callback that receives support or error results.
- Attributes
Remarks
Checks whether the service can start recognition with recognizerIntent.
Reports the support level or an error through supportCallback.
Uses attributionSource to attribute permission and bandwidth use to the caller.
By default, delegates to OnCheckRecognitionSupport(Intent, SupportCallback), which reports SpeechRecognizer.ErrorCannotCheckSupport. Override that overload to handle support checks from both entry points.
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.