OudsAnnotatedAlertMessageDescription
class OudsAnnotatedAlertMessageDescription : OudsAnnotatedString<OudsAnnotatedAlertMessageDescription>
An annotated string for alert message descriptions.
This class supports both strong (bold/emphasized) text and clickable links to create rich, informative alert descriptions. It is used by com.orange.ouds.core.component.OudsAlertMessage component.
Use buildOudsAnnotatedAlertMessageDescription to create instances:
val description = buildOudsAnnotatedAlertMessageDescription {
withStrong { append("Important:") }
append(" Please read the ")
withLink(OudsLinkAnnotation.Url("https://example.com/terms")) {
append("terms and conditions")
}
append(" carefully before proceeding")
}
OudsAlertMessage(
label = "Before you continue",
description = description,
status = OudsAlertMessageStatus.Warning
)Content copied to clipboard
Types
Link copied to clipboard
class Builder(capacity: Int = 16) : OudsAnnotatedString.Builder<OudsAnnotatedAlertMessageDescription> , OudsAnnotatedString.StrongBuilder, OudsAnnotatedString.LinkBuilder
Builder for creating OudsAnnotatedAlertMessageDescription with strong text and link formatting.
Properties
Functions
Link copied to clipboard
Create capitalized OudsAnnotatedString.
Link copied to clipboard
Create decapitalized OudsAnnotatedString.
Link copied to clipboard
operator fun plus(other: OudsAnnotatedAlertMessageDescription): OudsAnnotatedAlertMessageDescription
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.