getUriForFile

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

Gets a content URI for the given file using FileProvider.

Return

The content Uri for the file.

Parameters

context

The Android context.

file

The file to get the URI for.