DownloadStatus

sealed class DownloadStatus

Download status class used in DownloadListener.onStatusChanged method

Types

Link copied to clipboard
class Error(val downloadId: Long, val error: DownloadError) : DownloadStatus

Download finished with error, file was not saved to filesystem

Link copied to clipboard
class Progress(val downloadId: Long, val downloadedBytes: Long, val totalBytes: Long) : DownloadStatus

Download is in progress

Link copied to clipboard
class Success(val downloadId: Long) : DownloadStatus

Download was successful, file is stored on the filesystem

Properties

Link copied to clipboard

ID of the download

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard