toUri

fun Uri.toUri(): Uri
fun NSURL.toUri(): Uri?
fun URI.toUri(): Uri


fun File.toUri(): Uri

Creates a Uri from a file. The URI has the form "file://". Encodes path characters with the exception of '/'.

Example: "file:///tmp/android.txt"

Return

a Uri for the given file