Google is committed to advancing racial equity for Black communities. See how.

androidx.compose.ui.text.platform

Extension functions summary

For AnnotatedString
SpannableString

Convert an AnnotatedString into SpannableString for Android text to speech support.

Extension functions

toAccessibilitySpannableString

fun AnnotatedString.toAccessibilitySpannableString(
    density: Density,
    resourceLoader: Font.ResourceLoader
): SpannableString

Convert an AnnotatedString into SpannableString for Android text to speech support.