IndexedDBMediaStore

class IndexedDBMediaStore(val databaseName: String = "trixnity_media", toByteArray: suspend (uri: String, ByteArrayFlow, coroutineScope: CoroutineScope?, expectedSize: Long?, maxSize: Long?) -> ByteArray?? = null) : MediaStore

Deprecated

switch to createIndexedDBMediaStoreModule

Replace with

createIndexedDBMediaStoreModule(databaseName)

Constructors

Link copied to clipboard
constructor(databaseName: String = "trixnity_media", toByteArray: suspend (uri: String, ByteArrayFlow, coroutineScope: CoroutineScope?, expectedSize: Long?, maxSize: Long?) -> ByteArray?? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun addMedia(url: String, content: ByteArrayFlow): Any
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): IndexeddbPlatformMedia?
Link copied to clipboard
open suspend override fun init(coroutineScope: CoroutineScope)