ArticleImage

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.

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

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Structural: equal when every property is equal.

Link copied to clipboard
open override fun hashCode(): Int

Consistent with equals.

Link copied to clipboard
open override fun toString(): String

Every property, for logs and crash reports.