DownloadStatus

sealed interface DownloadStatus(source)

Represents the status of a download

Inheritors

Types

Link copied to clipboard
value class ByteData(val data: ByteArray) : DownloadStatus

Represents the data of a download. Only sent, when not streaming to a ByteWriteChannel

Link copied to clipboard
data class Progress(val totalBytesReceived: Long, val contentLength: Long) : DownloadStatus

Represents the progress of a download

Link copied to clipboard
data object Success : DownloadStatus

Represents the success of a download