CachedMediaStore

abstract class CachedMediaStore(coroutineScope: CoroutineScope, config: MatrixClientConfiguration, clock: Clock) : MediaStore

Constructors

Link copied to clipboard
constructor(coroutineScope: CoroutineScope, config: MatrixClientConfiguration, clock: Clock)

Functions

Link copied to clipboard
abstract suspend fun addMedia(url: String, content: ByteArrayFlow)
Link copied to clipboard
abstract suspend fun changeMediaUrl(oldUrl: String, newUrl: String)
Link copied to clipboard
suspend override fun clearCache()

Only deletes everything, that can be fetched from server.

Link copied to clipboard
suspend override fun deleteAll()

Deletes everything.

Link copied to clipboard
abstract suspend fun deleteAllFromStore()
Link copied to clipboard
abstract suspend fun deleteMedia(url: String)
Link copied to clipboard
abstract suspend fun getMedia(url: String): PlatformMedia?
Link copied to clipboard
open suspend fun init(coroutineScope: CoroutineScope)