download

abstract fun download(@NonNull options: DownloadOptions, @NonNull callback: DownloadStatusCallback): Long

Send the download request. Successful request initiates download session to fetch requested resource.

Return

Download id to observe and to cancel the download session.

Parameters

options

Download options describing url to download from and place on the disk where to save.

callback

Callback to report status of download session.