DownloadProgress

data class DownloadProgress(val receivedBytes: Long, val totalBytes: Long, val bytesPerSec: Long, val etaMs: Long)

Live progress of a model download. receivedBytes/totalBytes drive a progress bar; bytesPerSec and etaMs drive a "12 MB/s · 2 min left" label. totalBytes and etaMs are -1 when unknown (server sent no Content-Length).

Constructors

Link copied to clipboard
constructor(receivedBytes: Long, totalBytes: Long, bytesPerSec: Long, etaMs: Long)

Properties

Link copied to clipboard
Link copied to clipboard
val etaMs: Long
Link copied to clipboard

0f..1f, or 0f when the total size is unknown.

Link copied to clipboard
Link copied to clipboard