The Developer Preview for Android 11 is now available; test it out and share your feedback.

TextSpanScope

class TextSpanScope
kotlin.Any
   ↳ androidx.ui.core.TextSpanScope

The receiver class of the children of Text and TextSpan. Such that Span can only be used within Text and TextSpan.

Summary

Extension functions

From androidx.ui.core
Unit
TextSpanScope.Span(text: String? = null, style: SpanStyle? = null, child: TextSpanScope.() -> Unit)

Unit
TextSpanScope.Span(text: String? = null, style: SpanStyle? = null)

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

Properties

TextSpanComposer

Properties

composer

val composer: TextSpanComposer