downloadWithTask

fun downloadWithTask(url: String, destinationFile: File, queryParameters: Iterable<Request.Parameter> = emptyList()): FileDownloadTask

Returns a FileDownloadTask that downloads a file from the given url to the specified destinationFile. A FileDownloadTask supports pausing, resuming and cancelling the download. For the download to start, call FileDownloadTask.start.

Return

a FileDownloadTask to download a file

Since

200.6.0

Parameters

url

the URL from which to download a file

destinationFile

the destination file where the downloaded file will be saved. Note that any existing file will be overwritten by the downloaded data.

queryParameters

any request query parameters to be included in the URL

See also