isPermalinkSupported

abstract fun isPermalinkSupported(supportedHosts: Array<String>, url: String): Boolean

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

Return

true when url is a permalink

Parameters

supportedHosts

the list of hosts supported for permalinks

url

the link to check, Ex: "https://matrix.to/#/@benoit:matrix.org"