Added in API level 28

DownloadStatusListener


open class DownloadStatusListener
kotlin.Any
   ↳ 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

Public methods
open Unit
onStatusUpdated(request: DownloadRequest!, fileInfo: FileInfo!, status: Int)

Gives download status callbacks for a file in a DownloadRequest.

Public constructors

DownloadStatusListener

DownloadStatusListener()

Public methods

onStatusUpdated

Added in API level 28
open fun onStatusUpdated(
    request: DownloadRequest!,
    fileInfo: FileInfo!,
    status: Int
): Unit

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 android.telephony.MbmsDownloadSession#STATUS_UNKNOWN, android.telephony.MbmsDownloadSession#STATUS_ACTIVELY_DOWNLOADING, android.telephony.MbmsDownloadSession#STATUS_PENDING_DOWNLOAD, android.telephony.MbmsDownloadSession#STATUS_PENDING_REPAIR, or android.telephony.MbmsDownloadSession#STATUS_PENDING_DOWNLOAD_WINDOW