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, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration?, downloadHandler: suspend (Media) -> Unit): Result<Unit>
Link copied to clipboard
open suspend override fun downloadLegacy(mxcUri: String, allowRemote: Boolean?, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration, downloadHandler: suspend (Media) -> Unit): Result<Unit>
Link copied to clipboard
open suspend override fun downloadThumbnail(mxcUri: String, width: Long, height: Long, method: ThumbnailResizingMethod, animated: Boolean?, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration?, downloadHandler: suspend (Media) -> Unit): Result<Unit>
Link copied to clipboard
open suspend override fun downloadThumbnailLegacy(mxcUri: String, width: Long, height: Long, method: ThumbnailResizingMethod, allowRemote: Boolean?, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration, downloadHandler: suspend (Media) -> Unit): Result<Unit>
Link copied to clipboard
open suspend override fun getConfig(): Result<GetMediaConfig.Response>
Link copied to clipboard
open suspend override fun getConfigLegacy(): Result<GetMediaConfigLegacy.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 getUrlPreviewLegacy(url: String, timestamp: Long?): Result<GetUrlPreviewLegacy.Response>
Link copied to clipboard
open suspend override fun upload(media: Media, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration): Result<UploadMedia.Response>
open suspend override fun upload(serverName: String, mediaId: String, media: Media, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration): Result<Unit>