saveFile

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-beta.1

Parameters

context

The context.

url

The url to download.

type

The mime type of the file.

filename

The name of the downloaded file.

onSaved

The handler that will be invoked when the download is completed.

See also