Skip to main content

//clika-runtime/io.clika.modelverse/DownloadEvent

DownloadEvent

[common]
data class DownloadEvent(val file: String, val index: Int, val count: Int, val done: Long, val total: Long, val planBytesDone: Long, val planBytesTotal: Long, val isWeight: Boolean)

One step of a download (DownloadListener): the file transferring (repo-relative), its position in the plan so far (index of count; the plan grows as the resolve names its missing files), its bytes, and the plan's bytes done and total (planBytesTotal is 0 while a planned file's size is unknown). A cached file never joins the plan.

Constructors​

DownloadEvent[common]
constructor(file: String, index: Int, count: Int, done: Long, total: Long, planBytesDone: Long, planBytesTotal: Long, isWeight: Boolean)

Properties​

NameSummary
count[common]
val count: Int
done[common]
val done: Long
file[common]
val file: String
index[common]
val index: Int
isWeight[common]
val isWeight: Boolean
planBytesDone[common]
val planBytesDone: Long
planBytesTotal[common]
val planBytesTotal: Long
total[common]
val total: Long