DownloadState

sealed interface DownloadState(source)

Inheritors

Types

Link copied to clipboard
data class Failed(val pack: ModelPack, val message: String) : DownloadState
Link copied to clipboard
data object Idle : DownloadState
Link copied to clipboard
data class Running(val pack: ModelPack, val done: Long, val total: Long) : DownloadState

pack's files, done of total bytes; the rest of the queue follows.

Link copied to clipboard
data object Waiting : DownloadState

Scheduled; waiting for a network (Wi-Fi, if that's required).