MediaServiceImpl

class MediaServiceImpl(api: MatrixClientServerApiClient, mediaStore: MediaStore, mediaCacheMappingStore: MediaCacheMappingStore) : MediaService

Constructors

Link copied to clipboard
fun MediaServiceImpl(api: MatrixClientServerApiClient, mediaStore: MediaStore, mediaCacheMappingStore: MediaCacheMappingStore)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun getEncryptedMedia(encryptedFile: EncryptedFile, progress: MutableStateFlow<FileTransferProgress?>?, saveToCache: Boolean): Result<ByteFlow>
Link copied to clipboard
open suspend override fun getMedia(uri: String, progress: MutableStateFlow<FileTransferProgress?>?, saveToCache: Boolean): Result<ByteFlow>
Link copied to clipboard
open suspend override fun getThumbnail(mxcUri: String, width: Long, height: Long, method: ThumbnailResizingMethod, progress: MutableStateFlow<FileTransferProgress?>?, saveToCache: Boolean): Result<ByteFlow>
Link copied to clipboard
open suspend override fun prepareUploadEncryptedMedia(content: ByteFlow): EncryptedFile
Link copied to clipboard
open suspend override fun prepareUploadEncryptedThumbnail(content: ByteFlow, contentType: ContentType?): Pair<EncryptedFile, ThumbnailInfo>?
Link copied to clipboard
open suspend override fun prepareUploadMedia(content: ByteFlow, contentType: ContentType?): String
Link copied to clipboard
open suspend override fun prepareUploadThumbnail(content: ByteFlow, contentType: ContentType?): Pair<String, ThumbnailInfo>?
Link copied to clipboard
open suspend override fun uploadMedia(cacheUri: String, progress: MutableStateFlow<FileTransferProgress?>?, keepMediaInCache: Boolean): Result<String>