Permalink Service
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.
Types
Functions
Creates a HTML or Markdown mention span template. Can be used to replace a mention with a permalink to mentioned user. Ex: "%2\$s" or "%2\$s"
Creates a permalink for an id (can be a user Id, etc.). For a roomId, consider using createRoomPermalink Ex: "https://matrix.to/#/@benoit:matrix.org"
Creates a permalink for an event. Ex: "https://matrix.to/#/!nbzmcXAqpxBXjAdgoX:matrix.org/$1531497316352799BevdV:matrix.org"
Creates a permalink for an event. If you have an event you can use createPermalink Ex: "https://matrix.to/#/!nbzmcXAqpxBXjAdgoX:matrix.org/$1531497316352799BevdV:matrix.org?via=matrix.org"
Extract the linked id from the universal link.
Check if the url is a permalink. It must be a matrix.to link or a link with host provided by the string-array permalink_supported_hosts
in the config file