FileChooserUtils

Provides methods for extracting image path from chooser

Functions

Link copied to clipboard
fun getDataColumn(context: Context?, uri: Uri?, selection: String?, selectionArgs: Array<String>?): String

Get the value of the data column for this Uri. This is useful for MediaStore Uris, and other file-based ContentProviders.

Link copied to clipboard
fun getPath(context: Context, uri: Uri, fileIOProcessor: FileIOProcessor): String?

Get a file path from a Uri. This will get the the path for Storage Access Framework Documents, as well as the _data field for the MediaStore and other file-based ContentProviders.

Link copied to clipboard
Link copied to clipboard