MediaApiHandler
interface MediaApiHandler
Functions
Link copied to clipboard
abstract suspend fun createMedia(context: MatrixEndpointContext<CreateMedia, Unit, CreateMedia.Response>): CreateMedia.Response
Link copied to clipboard
abstract suspend fun downloadMedia(context: MatrixEndpointContext<DownloadMedia, Unit, Media>): Media
Link copied to clipboard
abstract suspend fun downloadMediaLegacy(context: MatrixEndpointContext<DownloadMediaLegacy, Unit, Media>): Media
Link copied to clipboard
abstract suspend fun downloadMediaWithFileName(context: MatrixEndpointContext<DownloadMediaWithFileName, Unit, Media>): Media
Link copied to clipboard
abstract suspend fun downloadThumbnail(context: MatrixEndpointContext<DownloadThumbnail, Unit, Media>): Media
Link copied to clipboard
abstract suspend fun downloadThumbnailLegacy(context: MatrixEndpointContext<DownloadThumbnailLegacy, Unit, Media>): Media
Link copied to clipboard
abstract suspend fun getMediaConfig(context: MatrixEndpointContext<GetMediaConfig, Unit, GetMediaConfig.Response>): GetMediaConfig.Response
Link copied to clipboard
abstract suspend fun getMediaConfigLegacy(context: MatrixEndpointContext<GetMediaConfigLegacy, Unit, GetMediaConfigLegacy.Response>): GetMediaConfigLegacy.Response
Link copied to clipboard
abstract suspend fun getUrlPreview(context: MatrixEndpointContext<GetUrlPreview, Unit, GetUrlPreview.Response>): GetUrlPreview.Response
Link copied to clipboard
abstract suspend fun getUrlPreviewLegacy(context: MatrixEndpointContext<GetUrlPreviewLegacy, Unit, GetUrlPreviewLegacy.Response>): GetUrlPreviewLegacy.Response
Link copied to clipboard
abstract suspend fun uploadMedia(context: MatrixEndpointContext<UploadMedia, Media, UploadMedia.Response>): UploadMedia.Response
Link copied to clipboard
abstract suspend fun uploadMediaByContentUri(context: MatrixEndpointContext<UploadMediaByContentUri, Media, Unit>)