buildOudsAnnotatedLabelText
inline fun buildOudsAnnotatedLabelText(builder: OudsAnnotatedLabelText.Builder.() -> Unit): OudsAnnotatedLabelText
Creates an OudsAnnotatedLabelText using a builder DSL.
Example:
buildOudsAnnotatedLabelText {
withStrong {
withColor(color = highlightColor) { append("Important update") }
}
append(", see details ")
withLink(link = OudsLinkAnnotation.Url("https://example.com/details")) { append("here") }
append(".")
}Content copied to clipboard
Return
The constructed annotated display text.
Parameters
builder
Lambda with receiver for building the annotated string.