PermalinkParser

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)

Functions

Link copied to clipboard
fun parse(uri: Uri): PermalinkData

Turns a uri to a PermalinkData. https://github.com/matrix-org/matrix-doc/blob/master/proposals/1704-matrix.to-permalinks.md

fun parse(uriString: String): PermalinkData

Turns a uri string to a PermalinkData.