Package-level declarations

Types

Link copied to clipboard
@Immutable
class AnnotatedString : CharSequence

The basic data structure of text with multiple styles. To construct an AnnotatedString you can use Builder.

Link copied to clipboard
@Immutable
class SpanStyle(val color: Color = Color.Unspecified, val textStyle: TextStyle = TextStyle.Unspecified, val background: Color = Color.Unspecified)

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

Pushes style to the AnnotatedString.Builder, executes block and then pops the style.