Language

RecognitionService.OnCheckRecognitionSupport メソッド

定義

オーバーロード

Name 説明
OnCheckRecognitionSupport(Intent, RecognitionService+SupportCallback)

同じ recognizerIntent に対して onStartListening(Intent,Callback) をサポートするかどうかをサービスに照会します。

OnCheckRecognitionSupport(Intent, AttributionSource, RecognitionService+SupportCallback)

サービスが意図による認識の開始をサポートしているかどうかを確認します。

OnCheckRecognitionSupport(Intent, RecognitionService+SupportCallback)

同じ recognizerIntent に対して onStartListening(Intent,Callback) をサポートするかどうかをサービスに照会します。

[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

パラメーター

recognizerIntent
Intent

サポートを確認する認識要求を含む意図。

supportCallback
RecognitionService.SupportCallback

認識のサポートまたはエラーを報告するために使用されるコールバック。

属性

注釈

同じ recognizerIntent に対して onStartListening(Intent,Callback) をサポートするかどうかをサービスに照会します。

サービスは、SupportCallback を介してサポートまたはエラーのレベルについて呼び出し元に通知します。

サービスがサポートを提供していない場合は、SpeechRecognizer.ERROR_CANNOT_CHECK_SUPPORTを呼び出し元に通知します。

android.speech.RecognitionService.onCheckRecognitionSupportの Android リファレンス。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象

OnCheckRecognitionSupport(Intent, AttributionSource, RecognitionService+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)]
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

パラメーター

recognizerIntent
Intent

評価する認識要求を記述する意図。

attributionSource
AttributionSource

呼び出し元アプリケーションの属性ソース。

supportCallback
RecognitionService.SupportCallback

サポートまたはエラーの結果を受け取るコールバック。

属性

注釈

サービスが recognizerIntentで認識を開始できるかどうかを確認します。

supportCallbackを使用して、サポート レベルまたはエラーを報告します。

attributionSourceを使用して、呼び出し元に対するアクセス許可と帯域幅の使用を属性化します。

既定では、 OnCheckRecognitionSupport(Intent, SupportCallback)に委任され、 SpeechRecognizer.ErrorCannotCheckSupport報告されます。 両方のエントリ ポイントからのサポート チェックを処理するには、そのオーバーロードをオーバーライドします。

Javaドキュメント。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象