Builder

class Builder

Builder for a DownloadRequest.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
Create a builder with default settings.

Functions

Link copied to clipboard
Create a DownloadRequest from the current settings.
Link copied to clipboard
Sets the outputFile for the download.
Link copied to clipboard
Sets the outputFolder for the download.
Link copied to clipboard
open fun overwriteExisting(overwriteExisting: Boolean): DownloadRequest.Builder
If set to true and the outputFile already exists, the download re-download the document.
Link copied to clipboard
Sets a DownloadSource from which to download.
Link copied to clipboard
Sets the download source from a Uri.
Same as uri but parses the given String to a Uri.
Link copied to clipboard
open fun useTemporaryOutputFile(useTemporaryOutputFile: Boolean): DownloadRequest.Builder
If set to true, the download will write to a temporary file with the same path and filename as the output file but append .tmp to it.