Share via


MbmsDownloadSession.RequestDownloadState(DownloadRequest, FileInfo) Method

Definition

Requests information about the state of a file pending download.

[Android.Runtime.Register("requestDownloadState", "(Landroid/telephony/mbms/DownloadRequest;Landroid/telephony/mbms/FileInfo;)V", "GetRequestDownloadState_Landroid_telephony_mbms_DownloadRequest_Landroid_telephony_mbms_FileInfo_Handler", ApiSince=28)]
public virtual void RequestDownloadState (Android.Telephony.Mbms.DownloadRequest? downloadRequest, Android.Telephony.Mbms.FileInfo? fileInfo);
[<Android.Runtime.Register("requestDownloadState", "(Landroid/telephony/mbms/DownloadRequest;Landroid/telephony/mbms/FileInfo;)V", "GetRequestDownloadState_Landroid_telephony_mbms_DownloadRequest_Landroid_telephony_mbms_FileInfo_Handler", ApiSince=28)>]
abstract member RequestDownloadState : Android.Telephony.Mbms.DownloadRequest * Android.Telephony.Mbms.FileInfo -> unit
override this.RequestDownloadState : Android.Telephony.Mbms.DownloadRequest * Android.Telephony.Mbms.FileInfo -> unit

Parameters

downloadRequest
DownloadRequest

The download request to query.

fileInfo
FileInfo

The particular file within the request to get information on.

Attributes

Remarks

Requests information about the state of a file pending download.

The state will be delivered as a callback via DownloadStatusListener#onStatusUpdated(DownloadRequest, FileInfo, int). If no such callback has been registered via #addProgressListener(DownloadRequest, Executor, DownloadProgressListener), this method will be a no-op.

If the middleware has no record of the file indicated by fileInfo being associated with downloadRequest, an IllegalArgumentException will be thrown.

Java documentation for android.telephony.MbmsDownloadSession.requestDownloadState(android.telephony.mbms.DownloadRequest, android.telephony.mbms.FileInfo).

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