DownloadState

sealed class DownloadState

During the download process, the media file may change its download state.

Inheritors

Types

Link copied to clipboard
data class Error(val reason: Throwable) : DownloadState

Error status. This status means that the download process completed with an error.

Link copied to clipboard
data class Progress(val progress: Float) : DownloadState

Downloading status. This status means that the file is in the process of being download.

Link copied to clipboard
data class Success(val uri: Uri) : DownloadState

Download completion status. This status means that the download process was completed successfully.