Package org.matrix.android.sdk.api.session.permalinks

Types

Link copied to clipboard
object MatrixLinkify

MatrixLinkify take a piece of text and turns all of the matrix patterns matches in the text into clickable links.

Link copied to clipboard
class MatrixPermalinkSpan(url: String, callback: MatrixPermalinkSpan.Callback? = null) : ClickableSpan

This MatrixPermalinkSpan is a clickable span which use a Callback to communicate back.

Link copied to clipboard
object MatrixToConverter

Mapping of an input URI to a matrix.to compliant URI.

Link copied to clipboard
sealed class PermalinkData

This sealed class represents all the permalink cases. You don't have to instantiate yourself but should use PermalinkParser instead.

Link copied to clipboard
object PermalinkParser

This class turns a uri to a PermalinkData. element-based domains (e.g. https://app.element.io/#/user/@chagai95:matrix.org) permalinks or matrix.to permalinks (e.g. https://matrix.to/#/@chagai95:matrix.org) or client permalinks (e.g. user/@chagai95:matrix.org)

Link copied to clipboard
interface PermalinkService

Useful methods to create permalink (like matrix.to links or client permalinks). See org.matrix.android.sdk.api.MatrixConfiguration.clientPermalinkBaseUrl to setup a custom permalink base url.