buildOudsAnnotatedBodyText

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(".")
}

Return

The constructed annotated display text.

Parameters

builder

Lambda with receiver for building the annotated string.