Params
data class Params(val url: String, val headers: Map<String, String>?, val body: Any?, val httpMethod: HttpMethod, val targetFileName: String, val mimeType: String? = null, val onProgress: suspend (Float) -> Unit = {}, val onDownloadFinished: suspend () -> Unit = {}, val onDownloadFailure: suspend (Throwable) -> Unit = {})
Properties
Link copied to clipboard
HTTP method.
Link copied to clipboard
called if the download fails, with the causing throwable.
Link copied to clipboard
called once the file is fully written.
Link copied to clipboard
called repeatedly with download progress (0f–1f).
Link copied to clipboard
name the downloaded file is saved under.