Companion

object Companion

Functions

Link copied to clipboard
fun getUriForFile(context: Context, file: File): Uri
fun getUriForFile(    context: Context,     directory: Directory,     relativePath: String): Uri

Get an uri for this content provider for the given file

Link copied to clipboard
fun guessMimeType(uri: Uri): String

Tries to guess the mime type from uri extension