ArticleImage

data class ArticleImage(val type: String, val url: String, val caption: String?, val width: Int, val height: Int) : ArticleElement

An image in an article's body, or the article's own lead image.

width and height are the source dimensions, given so a placeholder can hold the right aspect ratio before the bytes arrive.

Parameters

type

always image.

url

where to load the image from.

caption

the caption to show under it, if it has one.

width

the source width, in pixels.

height

the source height, in pixels.

Constructors

Link copied to clipboard
constructor(type: String, url: String, caption: String?, width: Int, height: Int)

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
open override val type: String
Link copied to clipboard
val url: String
Link copied to clipboard
val width: Int