MxcUriExtension extension
- on
Methods
-
getDownloadLink(
Client sdn) → Uri -
Available on Uri, provided by the MxcUriExtension extension
Returns a download Link to this content. -
getThumbnail(
Client sdn, {num? width, num? height, ThumbnailMethod? method = ThumbnailMethod.crop, bool? animated = false}) → Uri -
Available on Uri, provided by the MxcUriExtension extension
Returns a scaled thumbnail link to this content with the givenwidth
andheight
.method
can beThumbnailMethod.crop
orThumbnailMethod.scale
and defaults toThumbnailMethod.scale
. Ifanimated
(default false) is set to true, an animated thumbnail is requested as per MSC2705. Thumbnails only animate if the media repository supports that.