다음을 통해 공유


RecognitionService.OnTriggerModelDownload 메서드

정의

오버로드

OnTriggerModelDownload(Intent)

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

OnTriggerModelDownload(Intent, AttributionSource)

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

OnTriggerModelDownload(Intent, AttributionSource, IModelDownloadListener)

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

OnTriggerModelDownload(Intent)

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

[Android.Runtime.Register("onTriggerModelDownload", "(Landroid/content/Intent;)V", "GetOnTriggerModelDownload_Landroid_content_Intent_Handler", ApiSince=33)]
public virtual void OnTriggerModelDownload(Android.Content.Intent recognizerIntent);
[<Android.Runtime.Register("onTriggerModelDownload", "(Landroid/content/Intent;)V", "GetOnTriggerModelDownload_Landroid_content_Intent_Handler", ApiSince=33)>]
abstract member OnTriggerModelDownload : Android.Content.Intent -> unit
override this.OnTriggerModelDownload : Android.Content.Intent -> unit

매개 변수

recognizerIntent
Intent
특성

설명

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

에 대한 android.speech.RecognitionService.onTriggerModelDownload(android.content.Intent)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

OnTriggerModelDownload(Intent, AttributionSource)

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

[Android.Runtime.Register("onTriggerModelDownload", "(Landroid/content/Intent;Landroid/content/AttributionSource;)V", "GetOnTriggerModelDownload_Landroid_content_Intent_Landroid_content_AttributionSource_Handler", ApiSince=34)]
public virtual void OnTriggerModelDownload(Android.Content.Intent recognizerIntent, Android.Content.AttributionSource attributionSource);
[<Android.Runtime.Register("onTriggerModelDownload", "(Landroid/content/Intent;Landroid/content/AttributionSource;)V", "GetOnTriggerModelDownload_Landroid_content_Intent_Landroid_content_AttributionSource_Handler", ApiSince=34)>]
abstract member OnTriggerModelDownload : Android.Content.Intent * Android.Content.AttributionSource -> unit
override this.OnTriggerModelDownload : Android.Content.Intent * Android.Content.AttributionSource -> unit

매개 변수

recognizerIntent
Intent
attributionSource
AttributionSource
특성

설명

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

권한 및 대역폭을 올바르게 비난할 수 있도록 서비스 구현에 호출 AttributionSource를 제공합니다.

에 대한 android.speech.RecognitionService.onTriggerModelDownload(android.content.Intent, android.content.AttributionSource)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상

OnTriggerModelDownload(Intent, AttributionSource, IModelDownloadListener)

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

[Android.Runtime.Register("onTriggerModelDownload", "(Landroid/content/Intent;Landroid/content/AttributionSource;Landroid/speech/ModelDownloadListener;)V", "GetOnTriggerModelDownload_Landroid_content_Intent_Landroid_content_AttributionSource_Landroid_speech_ModelDownloadListener_Handler", ApiSince=34)]
public virtual void OnTriggerModelDownload(Android.Content.Intent recognizerIntent, Android.Content.AttributionSource attributionSource, Android.Speech.IModelDownloadListener listener);
[<Android.Runtime.Register("onTriggerModelDownload", "(Landroid/content/Intent;Landroid/content/AttributionSource;Landroid/speech/ModelDownloadListener;)V", "GetOnTriggerModelDownload_Landroid_content_Intent_Landroid_content_AttributionSource_Landroid_speech_ModelDownloadListener_Handler", ApiSince=34)>]
abstract member OnTriggerModelDownload : Android.Content.Intent * Android.Content.AttributionSource * Android.Speech.IModelDownloadListener -> unit
override this.OnTriggerModelDownload : Android.Content.Intent * Android.Content.AttributionSource * Android.Speech.IModelDownloadListener -> unit

매개 변수

recognizerIntent
Intent

에는 수행할 인식에 대한 매개 변수가 포함되어 있습니다. 의도에는 선택적 추가 항목도 포함될 수 있습니다.RecognizerIntent

attributionSource
AttributionSource

호출자의 특성 원본입니다.

listener
IModelDownloadListener

모델 다운로드 요청에 대한 업데이트를 받을 대상입니다.

특성

설명

에 대한 인식기 지원 다운로드를 요청합니다 recognizerIntent.

권한 및 대역폭을 올바르게 비난할 수 있도록 서비스 구현에 대한 호출 AttributionSource 을 제공합니다.

클라이언트는 지정된 ModelDownloadListener다음을 통해 진행률 업데이트를 받습니다.

<li> 모델을 이미 사용할 수 있는 ModelDownloadListener#onSuccess() 경우 직접 호출됩니다. 나중에 모델을 안전하게 사용할 수 있습니다.

<li> 다운로드를 RecognitionService 시작한 경우 다운로드 ModelDownloadListener#onProgress(int) 가 완료될 때까지 지정되지 않은(0개 이상) 횟수로 호출됩니다. 다운로드가 완료되면 ModelDownloadListener#onSuccess() 호출됩니다. 나중에 모델을 안전하게 사용할 수 있습니다.

<li> 다운로드 RecognitionService 만 예약했지만 즉시 ModelDownloadListener#onScheduled() 충족하지 않는 경우 호출됩니다. 이 수신기에 대한 추가 업데이트는 없습니다.

<li> 네트워크 또는 예약 오류 ModelDownloadListener#onError(int) 로 인해 언제든지 요청이 실패하면 호출됩니다.

에 대한 android.speech.RecognitionService.onTriggerModelDownload(android.content.Intent, android.content.AttributionSource, android.speech.ModelDownloadListener)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상