PreviewUrlData

data class PreviewUrlData(    val url: String,     val siteName: String?,     val title: String?,     val description: String?,     val mxcUrl: String?,     val imageWidth: Int?,     val imageHeight: Int?)

Facility data class to get the common field of a PreviewUrl response form the server.

Example of return data for the url https://matrix.org:

{
    "matrix:image:size": 112805,
    "og:description": "Matrix is an open standard for interoperable, decentralised, real-time communication",
    "og:image": "mxc://matrix.org/2020-12-03_uFqjagCCTJbaaJxb",
    "og:image:alt": "Matrix is an open standard for interoperable, decentralised, real-time communication",
    "og:image:height": 467,
    "og:image:type": "image/jpeg",
    "og:image:width": 911,
    "og:locale": "en_US",
    "og:site_name": "Matrix.org",
    "og:title": "Matrix.org",
    "og:type": "website",
    "og:url": "https://matrix.org"
}

Constructors

Link copied to clipboard
fun PreviewUrlData(    url: String,     siteName: String?,     title: String?,     description: String?,     mxcUrl: String?,     imageWidth: Int?,     imageHeight: Int?)

Properties

Link copied to clipboard
val description: String?
Link copied to clipboard
val imageHeight: Int?
Link copied to clipboard
val imageWidth: Int?
Link copied to clipboard
val mxcUrl: String?
Link copied to clipboard
val siteName: String?
Link copied to clipboard
val title: String?
Link copied to clipboard
val url: String