Share via


IModelDownloadListener.OnProgress(Int32) Method

Definition

Called by RecognitionService only if the download has started after the request.

[Android.Runtime.Register("onProgress", "(I)V", "GetOnProgress_IHandler:Android.Speech.IModelDownloadListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnProgress (int completedPercent);
[<Android.Runtime.Register("onProgress", "(I)V", "GetOnProgress_IHandler:Android.Speech.IModelDownloadListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnProgress : int -> unit

Parameters

completedPercent
Int32

the percentage of download that is completed

Attributes

Remarks

Called by RecognitionService only if the download has started after the request.

The number of calls to this method varies depending of the RecognitionService implementation. If the download finished quickly enough, #onSuccess() may be called directly. In other cases, this method may be called any number of times during the download.

Java documentation for android.speech.ModelDownloadListener.onProgress(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to