共用方式為


DownloadProgressListener.OnProgressUpdated 方法

定義

當中間件想要報告 中 DownloadRequest檔案的進度時呼叫。

[Android.Runtime.Register("onProgressUpdated", "(Landroid/telephony/mbms/DownloadRequest;Landroid/telephony/mbms/FileInfo;IIII)V", "GetOnProgressUpdated_Landroid_telephony_mbms_DownloadRequest_Landroid_telephony_mbms_FileInfo_IIIIHandler", ApiSince=28)]
public virtual void OnProgressUpdated(Android.Telephony.Mbms.DownloadRequest? request, Android.Telephony.Mbms.FileInfo? fileInfo, int currentDownloadSize, int fullDownloadSize, int currentDecodedSize, int fullDecodedSize);
[<Android.Runtime.Register("onProgressUpdated", "(Landroid/telephony/mbms/DownloadRequest;Landroid/telephony/mbms/FileInfo;IIII)V", "GetOnProgressUpdated_Landroid_telephony_mbms_DownloadRequest_Landroid_telephony_mbms_FileInfo_IIIIHandler", ApiSince=28)>]
abstract member OnProgressUpdated : Android.Telephony.Mbms.DownloadRequest * Android.Telephony.Mbms.FileInfo * int * int * int * int -> unit
override this.OnProgressUpdated : Android.Telephony.Mbms.DownloadRequest * Android.Telephony.Mbms.FileInfo * int * int * int * int -> unit

參數

request
DownloadRequest

DownloadRequest表示所參考的下載。

fileInfo
FileInfo

FileInfo 指定要報告進度的檔案。 請注意,要求可能會導致下載許多檔案,而且用戶端可能無法事先取得這些檔案的清單。

currentDownloadSize
Int32

是目前下載的數量。

fullDownloadSize
Int32

是構成已下載內容的位元組總數。 這可能與譯碼的最終大小不同,但在擷取下載進度方面很有用。

currentDecodedSize
Int32

是已譯碼的位元元組數目。

fullDecodedSize
Int32

是構成最終譯碼內容的位元組總數。

屬性

備註

當中間件想要報告 中 DownloadRequest檔案的進度時呼叫。

android.telephony.mbms.DownloadProgressListener.onProgressUpdated(android.telephony.mbms.DownloadRequest, android.telephony.mbms.FileInfo, int, int, int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於