OudsAnnotatedLabelText
An annotated string for com.orange.ouds.core.component.OudsLabelText text in OUDS components.
This class supports both colored text, strong (bold/emphasized) text and clickable links to create rich, interactive label texts.
Use buildOudsAnnotatedLabelText to create instances:
val highlightColor = OudsTheme.colorScheme.content.brandPrimary
OudsLabelText(
text = 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
Properties
Functions
Link copied to clipboard
Create capitalized OudsAnnotatedString.
Link copied to clipboard
Create decapitalized OudsAnnotatedString.
Link copied to clipboard
Concatenates this annotated string with another annotated string.
Link copied to clipboard
Link copied to clipboard
Create lower case transformed OudsAnnotatedString.
Link copied to clipboard
Create upper case transformed OudsAnnotatedString.