Request
constructor(remoteUri: Uri)
Constructs a new download request.
Parameters
remoteUri
the URL to the remote file.
constructor(remoteUri: Uri, localUri: Uri)
Constructs a new download request.
Parameters
remoteUri
the URL to the remote file.
localUri
the local destination for the downloaded file. Must be a file URI to a path on external storage, and the calling application must have the WRITE_EXTERNAL_STORAGE permission. If the value is null, the download file will be placed in the applications download directory.