Companion

object Companion

Functions

getUriForFile
Link copied to clipboard
fun getUriForFile(context: Context, file: File): Uri
Get an uri for this content provider for the given file
fun getUriForFile(context: Context, directory: Directory, relativePath: String): Uri
Get an uri for this content provider for the given file
guessMimeType
Link copied to clipboard
fun guessMimeType(uri: Uri): String
Tries to guess the mime type from uri extension