Expand description
Styled text: spans, links and string annotations.
Structs§
- Annotated
String - The basic data structure of text with multiple styles: Compose’s
AnnotatedString. Its content, the text, styles, annotations and link identities, is shared with every layout and draw made from it, so a clone copies no text. The handlers of its clickable links stay with it. - Builder
- A builder to construct
AnnotatedString. - Range
Style - A style applied to a range of an
AnnotatedString. - Render
String - What rendering reads from an
AnnotatedString: content, styles, and link identity — never the link handlers, which live UI-side only. - String
Annotation - Mirrors Jetpack Compose’s
AnnotatedString.Range<String>— a tag+value annotation covering a byte range.
Enums§
- Link
Annotation - Mirrors Jetpack Compose’s
LinkAnnotationsealed class. - LinkKey
- Link identity without the link behavior: what rendering may know about a
LinkAnnotation. URL links keep their URL, clickable links keep their tag — the handler stays UI-side.
Type Aliases§
- Span
Boundaries - Byte offsets where a string’s styles change, held inline for the few spans most text carries.