Package-level declarations
Types
Link copied to clipboard
The basic data structure of text with multiple styles. To construct an AnnotatedString you can use Builder.
Functions
Link copied to clipboard
Create an AnnotatedString with a spanStyle that will apply to the whole text.
Link copied to clipboard
Build a new AnnotatedString by populating newly created AnnotatedString.Builder provided by builder.
Link copied to clipboard
inline fun <R : Any> AnnotatedString.Builder.withStyle(style: SpanStyle, block: AnnotatedString.Builder.() -> R): R
Pushes style to the AnnotatedString.Builder, executes block and then pops the style.