Download Status
class DownloadStatus
Download status information corresponding to a media download.
Constructors
Link copied to clipboard
constructor(@NonNull mediaInfo: MediaInfo, @Nullable localStorageFolder: String, status: Int, reason: Int, @Nullable reasonDescription: String, lastModifiedTime: Long, totalSizeBytes: Long, bytesDownloaded: Long, downloadPercent: Int, @Nullable posterPath: String, isSavedOffline: Boolean, @Nullable displayTitle: String, @Nullable displayDescription: String)
Properties
Link copied to clipboard
Number of bytes downloaded for this download.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Overall download progress as percentage.
Link copied to clipboard
Keeps the track of download type, if true media is downloaded without license key, else media is downloaded with license key.
Link copied to clipboard
Timestamp when the download was last modified, in currentTimeMillis.
Link copied to clipboard
Link copied to clipboard
Path to a folder where all the media assets for this download will be downloaded.
Link copied to clipboard
Link copied to clipboard
Optional description in addition to reason.
Link copied to clipboard
Total size of the download in bytes.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun createForPending(@NonNull mediaInfo: MediaInfo, localStorageFolder: String, lastModifiedTime: Long, totalSizeBytes: Long, isSavedOffline: Boolean): DownloadStatus
Link copied to clipboard
Link copied to clipboard
Converts Download to DownloadStatus
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard