다음을 통해 공유


DownloadProgressListener.OnProgressUpdated Method

Definition

Called when the middleware wants to report progress for a file in a 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

Parameters

request
DownloadRequest

a DownloadRequest, indicating which download is being referenced.

fileInfo
FileInfo

a FileInfo specifying the file to report progress on. Note that the request may result in many files being downloaded and the client may not have been able to get a list of them in advance.

currentDownloadSize
Int32

is the current amount downloaded.

fullDownloadSize
Int32

is the total number of bytes that make up the downloaded content. This may be different from the decoded final size, but is useful in gauging download progress.

currentDecodedSize
Int32

is the number of bytes that have been decoded.

fullDecodedSize
Int32

is the total number of bytes that make up the final decoded content.

Attributes

Remarks

Called when the middleware wants to report progress for a file in a DownloadRequest.

Java documentation for android.telephony.mbms.DownloadProgressListener.onProgressUpdated(android.telephony.mbms.DownloadRequest, android.telephony.mbms.FileInfo, int, int, int, 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