save File
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.
Since
1.0.0
Parameters
context
The context.
url
The url to download.
type
The mime type of the file.
filename
The name of the downloaded file.
on Saved
The handler that will be invoked when the download is completed.