getDocumentNameAndSizeForUri

fun Context.getDocumentNameAndSizeForUri(documentUri: Uri, callback: (size: String?, name: String?) -> Unit = { _, _ -> })

Returns the file size in bytes and the file name

Receiver

Context

Parameters

documentUri

Uri

callback

Function2<@kotlin.ParameterName String?, @kotlin.ParameterName String?, Unit>