ResumableModelDownloader

class ResumableModelDownloader(bearerToken: String? = null, bufferSize: Int = DEFAULT_BUFFER_BYTES, connectTimeoutMs: Int, readTimeoutMs: Int, nanoTime: () -> Long = System::nanoTime)(source)

Constructors

Link copied to clipboard
constructor(bearerToken: String? = null, bufferSize: Int = DEFAULT_BUFFER_BYTES, connectTimeoutMs: Int, readTimeoutMs: Int, nanoTime: () -> Long = System::nanoTime)

Functions

Link copied to clipboard

Downloads url into target, resuming from <target>.tmp if a partial exists, emitting a DownloadProgress per buffer. On success the .tmp is renamed to target; on cancellation the .tmp is left in place for the next resume.