getUriForFile

fun getUriForFile(context: Context, file: File): Uri

Get an uri for this content provider for the given file

Return

the uri

Parameters

context

a context

file

the file


fun getUriForFile(context: Context, directory: Directory, relativePath: String): Uri

Get an uri for this content provider for the given file

Return

the uri

Parameters

context

a context

directory

the directory, to with the path is relative

relativePath

the file path