OkioMediaStore

class OkioMediaStore(basePath: Path, fileSystem: FileSystem = defaultFileSystem, coroutineContext: CoroutineContext = ioContext, toByteArray: suspend (uri: String, ByteArrayFlow, coroutineScope: CoroutineScope?, expectedSize: Long?, maxSize: Long?) -> ByteArray?? = null) : MediaStore

Deprecated

switch to createOkioMediaStoreModule

Replace with

createOkioMediaStoreModule(basePath)

Constructors

Link copied to clipboard
constructor(basePath: Path, fileSystem: FileSystem = defaultFileSystem, coroutineContext: CoroutineContext = ioContext, toByteArray: suspend (uri: String, ByteArrayFlow, coroutineScope: CoroutineScope?, expectedSize: Long?, maxSize: Long?) -> ByteArray?? = null)

Functions

Link copied to clipboard
open suspend override fun addMedia(url: String, content: ByteArrayFlow)
Link copied to clipboard
open suspend override fun changeMediaUrl(oldUrl: String, newUrl: String)
Link copied to clipboard
open suspend override fun clearCache()
Link copied to clipboard
open suspend override fun deleteAll()
Link copied to clipboard
open suspend override fun deleteMedia(url: String)
Link copied to clipboard
open suspend override fun getMedia(url: String): OkioPlatformMedia?
Link copied to clipboard
open suspend override fun init(coroutineScope: CoroutineScope)