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

TransformedText

data class TransformedText
kotlin.Any
   ↳ androidx.ui.input.TransformedText

The transformed text with offset offset mapping

Summary

Public constructors

<init>(transformedText: AnnotatedString, offsetMap: OffsetMap)

The transformed text with offset offset mapping

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

OffsetMap

The map used for bidirectional offset mapping from original to transformed text.

AnnotatedString

The transformed text

Public constructors

<init>

TransformedText(
    transformedText: AnnotatedString,
    offsetMap: OffsetMap)

The transformed text with offset offset mapping

Properties

offsetMap

val offsetMap: OffsetMap

The map used for bidirectional offset mapping from original to transformed text.

transformedText

val transformedText: AnnotatedString

The transformed text