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 givenwidthandheight.methodcan beThumbnailMethod.croporThumbnailMethod.scaleand 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.