MediaApiClient

interface MediaApiClient

Functions

Link copied to clipboard
abstract suspend fun download(mxcUri: String, allowRemote: Boolean? = null, progress: MutableStateFlow<FileTransferProgress?>? = null, timeout: Long): Result<Media>
Link copied to clipboard
abstract suspend fun downloadThumbnail(mxcUri: String, width: Long, height: Long, method: ThumbnailResizingMethod, allowRemote: Boolean? = null, progress: MutableStateFlow<FileTransferProgress?>? = null): Result<Media>
Link copied to clipboard
abstract suspend fun getConfig(): Result<GetMediaConfig.Response>
Link copied to clipboard
abstract suspend fun getUrlPreview(url: String, timestamp: Long? = null): Result<GetUrlPreview.Response>
Link copied to clipboard
abstract suspend fun upload(media: Media, progress: MutableStateFlow<FileTransferProgress?>? = null, timeout: Long): Result<UploadMedia.Response>

Inheritors

Link copied to clipboard