MediaApiClientImpl
Functions
Link copied to clipboard
Link copied to clipboard
open suspend override fun <T> downloadLegacy(mxcUri: String, allowRemote: Boolean?, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration, downloadHandler: suspend (Media) -> T): Result<T>
Link copied to clipboard
open suspend override fun <T> downloadThumbnail(mxcUri: String, width: Long, height: Long, method: ThumbnailResizingMethod, animated: Boolean?, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration?, downloadHandler: suspend (Media) -> T): Result<T>
Link copied to clipboard
open suspend override fun <T> downloadThumbnailLegacy(mxcUri: String, width: Long, height: Long, method: ThumbnailResizingMethod, allowRemote: Boolean?, progress: MutableStateFlow<FileTransferProgress?>?, timeout: Duration, downloadHandler: suspend (Media) -> T): Result<T>
Link copied to clipboard
Link copied to clipboard
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>