InMemoryMediaStore

class InMemoryMediaStore(toByteArray: suspend (uri: String, ByteArrayFlow, coroutineScope: CoroutineScope?, expectedSize: Long?, maxSize: Long?) -> ByteArray?? = null) : MediaStore

Deprecated

switch to createInMemoryMediaStoreModule

Replace with

createInMemoryMediaStoreModule()

Constructors

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

Properties

Link copied to clipboard
val media: MutableStateFlow<Map<String, List<ByteArray>>>

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()

Only deletes everything, that can be fetched from server.

Link copied to clipboard
open suspend override fun deleteAll()

Deletes everything.

Link copied to clipboard
open suspend override fun deleteMedia(url: String)
Link copied to clipboard
open suspend override fun getMedia(url: String): InMemoryPlatformMedia?
Link copied to clipboard
open suspend fun init(coroutineScope: CoroutineScope)