Builder

class Builder(capacity: Int = 16)

Constructors

Link copied to clipboard
constructor(capacity: Int = 16)

Functions

Link copied to clipboard
fun addFormat(format: RichTextString.Format, start: Int, end: Int)
Link copied to clipboard
fun append(text: String)
Link copied to clipboard
fun appendInlineContent(alternateText: String = REPLACEMENT_CHAR, content: InlineContent)
Link copied to clipboard
fun pop()
fun pop(index: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Provides access to the underlying builder, which can be used to add arbitrary formatting, including mixed with formatting from this Builder.

Link copied to clipboard