Idioma

RecognitionService.OnCheckRecognitionSupport Método

Definição

Sobrecargas

Nome Description
OnCheckRecognitionSupport(Intent, RecognitionService+SupportCallback)

Consulta o serviço se ele ofereceria suporte a um onStartListening(Intent,Callback) para o mesmo recognizerIntent.

OnCheckRecognitionSupport(Intent, AttributionSource, RecognitionService+SupportCallback)

Verifica se o serviço dá suporte ao reconhecimento inicial com uma intenção.

OnCheckRecognitionSupport(Intent, RecognitionService+SupportCallback)

Consulta o serviço se ele ofereceria suporte a um onStartListening(Intent,Callback) para o mesmo recognizerIntent.

[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

Parâmetros

recognizerIntent
Intent

A intenção que contém a solicitação de reconhecimento cujo suporte deve ser verificado.

supportCallback
RecognitionService.SupportCallback

O retorno de chamada usado para relatar o suporte ao reconhecimento ou um erro.

Atributos

Comentários

Consulta o serviço se ele ofereceria suporte a um onStartListening(Intent,Callback) para o mesmo recognizerIntent.

O serviço notificará o chamador sobre o nível de suporte ou erro por meio do SupportCallback.

Se o serviço não oferecer a verificação de suporte, ele notificará o chamador com SpeechRecognizer.ERROR_CANNOT_CHECK_SUPPORT.

Referência do Android para android.speech.RecognitionService.onCheckRecognitionSupport.

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usadas de acordo com os termos descritos na Licença de Atribuição Creative Commons 2.5.

Aplica-se a

OnCheckRecognitionSupport(Intent, AttributionSource, RecognitionService+SupportCallback)

Verifica se o serviço dá suporte ao reconhecimento inicial com uma intenção.

[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

Parâmetros

recognizerIntent
Intent

A intenção que descreve a solicitação de reconhecimento a ser avaliada.

attributionSource
AttributionSource

A origem da atribuição para o aplicativo de chamada.

supportCallback
RecognitionService.SupportCallback

O retorno de chamada que recebe resultados de suporte ou erro.

Atributos

Comentários

Verifica se o serviço pode iniciar o reconhecimento com recognizerIntent.

Relata o nível de suporte ou um erro por meio supportCallback.

attributionSource Usa para atribuir a permissão e a largura de banda usadas ao chamador.

Por padrão, delega para OnCheckRecognitionSupport(Intent, SupportCallback), que relata SpeechRecognizer.ErrorCannotCheckSupport. Substitua essa sobrecarga para lidar com verificações de suporte de ambos os pontos de entrada.

Java documentação para android.speech.RecognitionService.onCheckRecognitionSupport(android.content.Intent, android.content.AttributionSource, android.speech.RecognitionService.SupportCallback).

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Android Open Source Project e usadas de acordo com os termos descritos na Licença de Atribuição Creative Commons 2.5.

Aplica-se a