ContentBuilder

DSL builder for constructing multi-part content (Content.Parts or Content.Text).

If only a single text part is added, build returns a Content.Text. Otherwise, it returns a Content.Parts with all added parts.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun image(source: ImageSource)

Adds an image part to the content.

Link copied to clipboard
fun text(value: String)

Adds a text part to the content.