buildOudsAnnotatedBodyText
inline fun buildOudsAnnotatedBodyText(builder: OudsAnnotatedBodyText.Builder.() -> Unit): OudsAnnotatedBodyText
Creates an OudsAnnotatedBodyText using a builder DSL.
Example:
buildOudsAnnotatedBodyText {
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.