Share via


MbmsDownloadSession.Download(DownloadRequest) Method

Definition

Requests the download of a file or set of files that the carrier has indicated to be available.

[Android.Runtime.Register("download", "(Landroid/telephony/mbms/DownloadRequest;)V", "GetDownload_Landroid_telephony_mbms_DownloadRequest_Handler", ApiSince=28)]
public virtual void Download (Android.Telephony.Mbms.DownloadRequest request);
[<Android.Runtime.Register("download", "(Landroid/telephony/mbms/DownloadRequest;)V", "GetDownload_Landroid_telephony_mbms_DownloadRequest_Handler", ApiSince=28)>]
abstract member Download : Android.Telephony.Mbms.DownloadRequest -> unit
override this.Download : Android.Telephony.Mbms.DownloadRequest -> unit

Parameters

request
DownloadRequest

The request that specifies what should be downloaded.

Attributes

Remarks

Requests the download of a file or set of files that the carrier has indicated to be available.

May throw an IllegalArgumentException

If #setTempFileRootDirectory(File) has not called after the app has been installed, this method will create a directory at the default location defined at MbmsDownloadSession#DEFAULT_TOP_LEVEL_TEMP_DIRECTORY and store that as the temp file root directory.

If the DownloadRequest has a destination that is not on the same filesystem as the temp file directory provided via #getTempFileRootDirectory(), an IllegalArgumentException will be thrown.

Asynchronous errors through the callback may include any error not specific to the streaming use-case.

If no error is delivered via the callback after calling this method, that means that the middleware has successfully started the download or scheduled the download, if the download is at a future time.

Java documentation for android.telephony.MbmsDownloadSession.download(android.telephony.mbms.DownloadRequest).

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