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? = null, val textStyle: TextStyle? = null, val background: Color? = null)

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.