Media Api Handler
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 downloadThumbnail(context: MatrixEndpointContext<DownloadThumbnail, 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 getUrlPreview(context: MatrixEndpointContext<GetUrlPreview, Unit, GetUrlPreview.Response>): GetUrlPreview.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>)