MediaGalleryItem

inline fun MediaGalleryItem(url: String, description: String? = null, spoiler: Boolean = false, block: InlineMediaGalleryItem.() -> Unit = {}): MediaGalleryItem(source)

See MediaGalleryItem.fromUrl.

Parameters

url

The URL of the image to display

description

Known as an "alternative text", must not exceed MAX_DESCRIPTION_LENGTH characters

spoiler

Hides the item until the user clicks on it

block

Lambda allowing further configuration


inline fun MediaGalleryItem(file: FileUpload, description: String? = null, spoiler: Boolean = false, block: InlineMediaGalleryItem.() -> Unit = {}): MediaGalleryItem(source)

See MediaGalleryItem.fromFile.

Parameters

file

The image to display

description

Known as an "alternative text", must not exceed MAX_DESCRIPTION_LENGTH characters

spoiler

Hides the item until the user clicks on it

block

Lambda allowing further configuration