Builder
class Builder(capacity: Int = 16) : OudsAnnotatedString.Builder<OudsAnnotatedHelperText> , OudsAnnotatedString.StrongBuilder
Builder for creating OudsAnnotatedHelperText with strong text formatting.
Supports strong text annotation through addStrong and pushStrong methods, or more conveniently through the withStrong DSL helper.
Parameters
capacity
Initial capacity for the underlying string builder. Defaults to 16.
Constructors
Functions
Link copied to clipboard
open override fun append(text: CharSequence?, start: Int, end: Int): OudsAnnotatedString.Builder<OudsAnnotatedHelperText>
Link copied to clipboard
Ends the style or annotation that was added via a push operation before.
Ends the styles or annotation up to and including the StrongBuilder.pushStrong or LinkBuilder.pushLink that returned the given index.
Link copied to clipboard
Applies strong (bold/emphasized) style to any appended text until a corresponding pop is called.
Link copied to clipboard
Constructs an OudsAnnotatedString based on the configurations applied to the Builder.
Link copied to clipboard
inline fun <R : Any> OudsAnnotatedString.StrongBuilder.withStrong(block: OudsAnnotatedString.StrongBuilder.() -> R): R
DSL helper for applying strong (bold/emphasized) formatting to a block of text.