RichUtils / pyxis.uzuki.live.richutilskt.utils / downloadFile

downloadFile

fun downloadFile(urlPath: String, localPath: String, callback: (Uri?) -> Unit = {}): Uri?
fun downloadFile(urlPath: String, localPath: String, callback: F1<Uri>?): Uri?

Download file from uri

Parameters

urlPath - path of file

localPath - full path of file to saved

Return
Uri object