Package-level declarations

Functions

Link copied to clipboard

Create a DocumentFile representing the filesystem tree rooted at the given File. This doesn't give you any additional access to the underlying files beyond what your app already has.

Link copied to clipboard

Create a DocumentFile representing the document tree rooted at the given {@link Uri}. This is only useful on devices running {@link android.os.Build.VERSION_CODES#LOLLIPOP} or later, and will return {@code null} when called on earlier platform versions.

Link copied to clipboard

Create a {@link DocumentFile} representing the single document at the given {@link Uri}. This is only useful on devices running {@link android.os.Build.VERSION_CODES#KITKAT} or later, and will return {@code null} when called on earlier platform versions.

Link copied to clipboard
inline fun copyStream(size: Long, inputStream: InputStream, os: OutputStream, bufferSize: Int = 4096, progress: (Long) -> Unit = {})
Link copied to clipboard
inline fun InputStream.copyStream(size: Long, os: OutputStream, bufferSize: Int = 4096, progress: (Long) -> Unit = {})
Link copied to clipboard
@RequiresApi(value = 29)
@RequiresPermission(value = "android.permission.ACCESS_MEDIA_LOCATION")
fun Context.flipImageHorizontally(uri: Uri)
Link copied to clipboard
@RequiresApi(value = 29)
@RequiresPermission(value = "android.permission.ACCESS_MEDIA_LOCATION")
fun Context.flipImageVertically(uri: Uri)
Link copied to clipboard
@RequiresApi(value = 29)
@RequiresPermission(value = "android.permission.ACCESS_MEDIA_LOCATION")
inline fun Context.getLocationFromImages(uri: Uri, latNLongCallBack: (latNLong: DoubleArray) -> Unit = { _ -> })

Extracts user's location from images, requires permission

Link copied to clipboard
fun getMimeType(filePath: String?): String?
Link copied to clipboard
fun File.getMimeType(fallback: String = "*/*"): String
Link copied to clipboard
inline fun Context.moveFileToUri(treeUri: Uri, file: File, crossinline progress: (Long) -> Unit = {})
Link copied to clipboard

Recursive listing SAF Files and returns the list containing all the items

fun recursiveSAFFiles(files: Array<DocumentFile>?, fileCallback: (traversedFile: DocumentFile) -> Unit = {})

Recursive listing SAF files