RecognitionService.OnCheckRecognitionSupport Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
| Nombre | Description |
|---|---|
| OnCheckRecognitionSupport(Intent, RecognitionService+SupportCallback) |
Consulta el servicio si admitiría onStartListening(Intent,Callback) para el mismo recognizerIntent. |
| OnCheckRecognitionSupport(Intent, AttributionSource, RecognitionService+SupportCallback) |
Comprueba si el servicio admite el inicio del reconocimiento con una intención. |
OnCheckRecognitionSupport(Intent, RecognitionService+SupportCallback)
Consulta el servicio si admitiría onStartListening(Intent,Callback) para el mismo 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
Intención que contiene la solicitud de reconocimiento cuya compatibilidad se va a comprobar.
- supportCallback
- RecognitionService.SupportCallback
Devolución de llamada usada para notificar compatibilidad con el reconocimiento o un error.
- Atributos
Comentarios
Consulta el servicio si admitiría onStartListening(Intent,Callback) para el mismo recognizerIntent.
El servicio notificará al autor de la llamada sobre el nivel de soporte técnico o error a través de SupportCallback.
Si el servicio no ofrece la comprobación de soporte técnico, notificará al autor de la llamada con SpeechRecognizer.ERROR_CANNOT_CHECK_SUPPORT.
Referencia de Android para android.speech.RecognitionService.onCheckRecognitionSupport.
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.
Se aplica a
OnCheckRecognitionSupport(Intent, AttributionSource, RecognitionService+SupportCallback)
Comprueba si el servicio admite el inicio del reconocimiento con una intención.
[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
Intención que describe la solicitud de reconocimiento que se va a evaluar.
- attributionSource
- AttributionSource
Origen de atribución para la aplicación que llama.
- supportCallback
- RecognitionService.SupportCallback
Devolución de llamada que recibe resultados de soporte o error.
- Atributos
Comentarios
Comprueba si el servicio puede iniciar el reconocimiento con recognizerIntent.
Notifica el nivel de soporte técnico o un error a través de supportCallback.
Usa attributionSource para atribuir el permiso y el uso de ancho de banda al autor de la llamada.
De forma predeterminada, delega a OnCheckRecognitionSupport(Intent, SupportCallback), que notifica SpeechRecognizer.ErrorCannotCheckSupport. Invalide esa sobrecarga para controlar las comprobaciones de compatibilidad de ambos puntos de entrada.
Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.