getPreviewUrl

abstract suspend fun getPreviewUrl(    url: String,     timestamp: Long?,     cacheStrategy: CacheStrategy): PreviewUrlData

Get Url Preview data from the homeserver, or from cache, depending on the cache strategy.

Parameters

url

The url to get the preview data from

timestamp

The optional timestamp. Note that this parameter is not taken into account if the data is already in cache and the cache strategy allow to use it

cacheStrategy

the cache strategy, see the type for more details