MediaService

interface MediaService

Inheritors

Functions

Link copied to clipboard
abstract suspend fun getEncryptedMedia(encryptedFile: EncryptedFile, progress: MutableStateFlow<FileTransferProgress?>? = null, saveToCache: Boolean = true): Result<PlatformMedia>
Link copied to clipboard
abstract suspend fun getMedia(uri: String, progress: MutableStateFlow<FileTransferProgress?>? = null, saveToCache: Boolean = true): Result<PlatformMedia>
Link copied to clipboard
abstract suspend fun getThumbnail(uri: String, width: Long, height: Long, method: ThumbnailResizingMethod = CROP, animated: Boolean = false, progress: MutableStateFlow<FileTransferProgress?>? = null, saveToCache: Boolean = true): Result<PlatformMedia>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun prepareUploadMedia(content: ByteArrayFlow, contentType: ContentType?): String
Link copied to clipboard
abstract suspend fun uploadMedia(cacheUri: String, progress: MutableStateFlow<FileTransferProgress?>? = null, keepMediaInCache: Boolean = true): Result<String>