Builder

Builder class for annotated string. Enables construction of an OudsAnnotatedString using methods such as append.

Use specialized builder functions like buildOudsAnnotatedHelperText or buildOudsAnnotatedAlertMessageDescription instead of using this class directly.

Parameters

capacity

Initial capacity for the internal char buffer.

Inheritors

Functions

Link copied to clipboard
open override fun append(char: Char): OudsAnnotatedString.Builder<T>
fun append(text: String)

Appends the given String to this Builder.

open override fun append(text: CharSequence?): OudsAnnotatedString.Builder<T>

Appends text to this Builder if non-null, and returns this Builder.

open override fun append(text: CharSequence?, start: Int, end: Int): OudsAnnotatedString.Builder<T>

Appends the range of text between start (inclusive) and end (exclusive) to this Builder if non-null, and returns this Builder.

Link copied to clipboard
fun pop()
fun pop(index: Int)
Link copied to clipboard
open fun toAnnotatedString(): T

Constructs an OudsAnnotatedString based on the configurations applied to the Builder.