tryToOpenFile

fun Context.tryToOpenFile(uri: Uri, onFailure: (doesFileExists: Boolean) -> Unit)

Open the file or call the input callback if an error occurs

Receiver

Context the context used for the file lookup

Parameters

uri

Uri the input uri

onFailure

Function1<@kotlin.ParameterName Boolean, Unit> callback that is called when the open file process fails