DownloadStatusListener

public class DownloadStatusListener
extends Object

java.lang.Object
   ↳ android.telephony.mbms.DownloadStatusListener


A optional listener class used by download clients to track progress. Apps should extend this class and pass an instance into MbmsDownloadSession#download(DownloadRequest) This is optionally specified when requesting a download and will only be called while the app is running.

Summary

Public constructors

DownloadStatusListener()

Public methods

void onStatusUpdated(DownloadRequest request, FileInfo fileInfo, int status)

Gives download status callbacks for a file in a DownloadRequest.

Inherited methods

Public constructors

DownloadStatusListener

public DownloadStatusListener ()

Public methods

onStatusUpdated

Added in API level 28
public void onStatusUpdated (DownloadRequest request, 
                FileInfo fileInfo, 
                int status)

Gives download status callbacks for a file in a DownloadRequest.

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.

status int: The current status of the download. Value is MbmsDownloadSession.STATUS_UNKNOWN, MbmsDownloadSession.STATUS_ACTIVELY_DOWNLOADING, MbmsDownloadSession.STATUS_PENDING_DOWNLOAD, MbmsDownloadSession.STATUS_PENDING_REPAIR, or MbmsDownloadSession.STATUS_PENDING_DOWNLOAD_WINDOW