MediaApiClientImpl

Constructors

Link copied to clipboard
constructor(httpClient: MatrixClientServerApiHttpClient)

Functions

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