MatrixUrls

object MatrixUrls

This class contains pattern to match Matrix Url, aka mxc urls.

Functions

Link copied to clipboard
fun String.isMxcUrl(): Boolean

Return true if the String starts with "mxc://".

Link copied to clipboard
fun String.removeMxcPrefix(): String

Remove the "mxc://" prefix. No op if the String is not a Mxc URL.

Properties

Link copied to clipboard
const val MATRIX_CONTENT_URI_SCHEME: String

"mxc" scheme, including "://". So "mxc://".