DownloadMetaData
data class DownloadMetaData(id: Int?, linkHash: Int, var bytesDownloaded: Long = 0, var bytesWritten: Long = 0, var totalBytes: Long? = null, lastUpdatedMs: Long = 0, lastDownloadedBytes: Long = 0, createNotificationCallback: (DownloadObjects.CreateNotificationMetadata) -> Unit, internalType: VideoDownloadManager.DownloadType = DownloadType.IsPending, val isHLS: Boolean, var hlsProgress: Int = 0, var hlsTotal: Int? = null, var hlsWrittenProgress: Int = 0, downloadFileInfoTemplate: DownloadObjects.DownloadedFileInfo? = null) : Closeable(source)
This class handles the notifications, as well as the relevant key
Constructors
Link copied to clipboard
constructor(id: Int?, linkHash: Int, bytesDownloaded: Long = 0, bytesWritten: Long = 0, totalBytes: Long? = null, lastUpdatedMs: Long = 0, lastDownloadedBytes: Long = 0, createNotificationCallback: (DownloadObjects.CreateNotificationMetadata) -> Unit, internalType: VideoDownloadManager.DownloadType = DownloadType.IsPending, isHLS: Boolean, hlsProgress: Int = 0, hlsTotal: Int? = null, hlsWrittenProgress: Int = 0, downloadFileInfoTemplate: DownloadObjects.DownloadedFileInfo? = null)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
adds the length + hsl progress and pushes a notification if necessary
Link copied to clipboard
Returns the appropriate failed status based on download progress
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard