语言

SpeechRecognizer.CheckRecognitionSupport 方法

定义

检查是否 recognizerIntent 受 SpeechRecognizer#startListening(Intent)支持。

[Android.Runtime.Register("checkRecognitionSupport", "(Landroid/content/Intent;Ljava/util/concurrent/Executor;Landroid/speech/RecognitionSupportCallback;)V", "GetCheckRecognitionSupport_Landroid_content_Intent_Ljava_util_concurrent_Executor_Landroid_speech_RecognitionSupportCallback_Handler", ApiSince=33)]
public virtual void CheckRecognitionSupport(Android.Content.Intent recognizerIntent, Java.Util.Concurrent.IExecutor executor, Android.Speech.IRecognitionSupportCallback supportListener);
[<Android.Runtime.Register("checkRecognitionSupport", "(Landroid/content/Intent;Ljava/util/concurrent/Executor;Landroid/speech/RecognitionSupportCallback;)V", "GetCheckRecognitionSupport_Landroid_content_Intent_Ljava_util_concurrent_Executor_Landroid_speech_RecognitionSupportCallback_Handler", ApiSince=33)>]
abstract member CheckRecognitionSupport : Android.Content.Intent * Java.Util.Concurrent.IExecutor * Android.Speech.IRecognitionSupportCallback -> unit
override this.CheckRecognitionSupport : Android.Content.Intent * Java.Util.Concurrent.IExecutor * Android.Speech.IRecognitionSupportCallback -> unit

参数

recognizerIntent
Intent

包含要执行的识别的参数。 该意向还可能包含可选附加项。 有关 RecognizerIntent 支持的额外列表,可能会忽略任何未列出的额外内容。

executor
IExecutor

回调和侦听器事件通过此执行程序调度,用于控制用于调度的线程。

supportListener
IRecognitionSupportCallback

接收支持查询结果的侦听器。

特性

注解

检查是否 recognizerIntent 受 SpeechRecognizer#startListening(Intent)支持。

Java文档android.speech.SpeechRecognizer.checkRecognitionSupport(android.content.Intent, java.util.concurrent.Executor, android.speech.RecognitionSupportCallback)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于