lightbulb_outline Please take our October 2018 developer survey. Start survey

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

added in API level 28
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.