resolveThumbnail

abstract fun resolveThumbnail(    contentUrl: String?,     width: Int,     height: Int,     method: ContentUrlResolver.ThumbnailMethod): String?

Get the actual URL for accessing the thumbnail image of a given Matrix media content URI.

Return

the URL to access the described resource, or null if the url is invalid.

Parameters

contentUrl

the Matrix media content URI (in the form of "mxc://...").

width

the desired width

height

the desired height

method

the desired method (METHOD_CROP or METHOD_SCALE)