Share via


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

の Java ドキュメント android.speech.RecognitionService.onTriggerModelDownload(android.content.Intent)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

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 を提供します。

の Java ドキュメント android.speech.RecognitionService.onTriggerModelDownload(android.content.Intent, android.content.AttributionSource)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

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) が呼び出されます。

の Java ドキュメント android.speech.RecognitionService.onTriggerModelDownload(android.content.Intent, android.content.AttributionSource, android.speech.ModelDownloadListener)

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象