richText
Registers a composable for a RichText node type.
Parameters
type
The class of the rich text node.
composable
The composable used to render the node.
Type Parameters
T
The RichText type to register.
fun <T : RichText> richText(type: KClass<out T>, builder: @Composable AnnotatedString.Builder.(T) -> Unit)(source)
Registers an AnnotatedString.Builder handler for a RichText node type.
Parameters
type
The class of the rich text node.
builder
The builder function appending rich text content to an AnnotatedString.
Type Parameters
T
The RichText type to register.
Registers a rich text composable using reified type information.
Parameters
composable
The composable used to render the node.
Type Parameters
T
The RichText type to register.
inline fun <T : RichText> richText(noinline builder: @Composable AnnotatedString.Builder.(T) -> Unit)(source)
Registers an AnnotatedString.Builder handler for a rich text node using reified type information.
Parameters
builder
The builder function appending rich text content to an AnnotatedString.
Type Parameters
T
The RichText type to register.