ContentUrlResolver

This interface defines methods for accessing content from the current session.

Types

Link copied to clipboard
sealed class ResolvedMethod

Functions

Link copied to clipboard
abstract fun requiresAuthentication(resolvedUrl: String): Boolean
Link copied to clipboard
abstract fun resolveForDownload(contentUrl: String?, elementToDecrypt: ElementToDecrypt? = null): ContentUrlResolver.ResolvedMethod?

Get the ResolvedMethod to download a URL.

Link copied to clipboard
abstract fun resolveFullSize(contentUrl: String?): String?

Get the actual URL for accessing the full-size image of a Matrix media content URI.

Link copied to clipboard
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.

Properties

Link copied to clipboard
abstract val uploadUrl: String

URL to use to upload content.