Image

data class Image(    var link: String,     var title: String,     var url: String,     var description: String? = null,     var width: Int? = null,     var height: Int? = null)

<image> is an optional sub-element of <channel>, which contains three required and three optional sub-elements.

Optional elements include <width> and <height>, numbers, indicating the width and height of the image in pixels.

<description> contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.

Constructors

Link copied to clipboard
fun Image(    link: String,     title: String,     url: String,     description: String? = null,     width: Int? = null,     height: Int? = null)

Properties

Link copied to clipboard
var description: String? = null

<description> contains text that is included in the TITLE attribute of the link formed around the image in the HTML rendering.

Link copied to clipboard
var height: Int? = null

<height> indicates the height of the image in pixels. Maximum value for height is 400, default value is 31.

Link copied to clipboard
var link: String

<link> is the URL of the site, when the channel is rendered, the image is a link to the site.

Link copied to clipboard
var title: String

<title> describes the image, it's used in the ALT attribute of the HTML <img> tag when the channel is rendered in HTML.

Link copied to clipboard
var url: String

<url> is the URL of a GIF, JPEG or PNG image that represents the channel.

Link copied to clipboard
var width: Int? = null

<width> indicates the width of the image in pixels. Maximum value for width is 144, default value is 88.

Sources

Link copied to clipboard