FileDownloader

A utility that downloads files from the given url.

Since

1.0.0

Properties

Link copied to clipboard
val downloadBroadcastReceiver: <Error class: unknown class>

A broadcast receiver that listens to the download status from the DownloadManager. This should be registered before downloading files by saveFile to receive the download completion event. The download completion event will be delivered from the handler with the result of the download.

Functions

Link copied to clipboard
fun saveFile(context: <Error class: unknown class>, url: String, type: String, filename: String, onSaved: (Boolean) -> Unit?)

Tries to download a file from the given url.