FileStorageManager
FileStorage manager API - general framework for filesystem usage, it should provide any filesystem related operations in app. File system commits done by FileStorage manager are automatically respect for Scoped Storage conditions since Android Q version.
Properties
Functions
Link copied to clipboard
Create empty cache file.
Link copied to clipboard
Create empty private file.
Link copied to clipboard
Used from native code Delete directory with specified filepath.
Link copied to clipboard
Used from native code Delete file with specified filepath.
Link copied to clipboard
Delete media store file according to :
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Used from native code Getting file size in bytes.
Link copied to clipboard
Retrieve of input stream from uri
Link copied to clipboard
Link copied to clipboard
Retrieve of output stream from uri
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Used from native code Getting access to file by obtaining native file descriptor.
Link copied to clipboard
Release all persistable URI permissions that was taken by app.
Link copied to clipboard
Release certain persistable URI permissions that was taken.
Link copied to clipboard
Save provided content from provided uri to output stream of existed file.
Save provided bitmap to file storage as image file.
Save provided file to file storage according to :
open fun save(@NonNull sourceUri: Uri, @NonNull fileName: String, contentType: Int, storageType: Int): Uri
Save provided content from uri to file storage according to :
open fun save(bytes: Array<Byte>, @NonNull fileName: String, contentType: Int, storageType: Int): Uri
Save provided byte array to file storage.
open fun save(@NonNull sourceStream: InputStream, @NonNull fileName: String, contentType: Int, storageType: Int): Uri
Save provided input stream data to file storage according to :
Link copied to clipboard
Save content from provided bitmap to cache.
Save content from provided uri to cache.
Save content from provided byte array to cache.
Link copied to clipboard
Link copied to clipboard
open fun saveVirtualFile(@Nullable sourceUri: Uri, @Nullable targetStream: FileOutputStream): Boolean
Save provided content from provided uri of virtual file (for example virtual files created by Google Drive) to output stream of existed file.
Link copied to clipboard
Take a persistable URI permission grant that has been offered (for example for URI retrieved using SAF framework with ACTION_OPEN_DOCUMENT).