# TransformedText

Artifact: [androidx.compose.ui:ui-text](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/text/input/VisualTransformation.kt+class:androidx.compose.ui.text.input.TransformedText) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01) Common/AllAndroid/JVM
- Cmn

  ```
  class TransformedText
  ```

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> The TextField flavors that use VisualTransformation are deprecated. Please refer to OutputTransformation.

The transformed text with offset mapping

## Summary

| ### Public constructors |
|---|---|
| `[TransformedText](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#TransformedText(androidx.compose.ui.text.AnnotatedString,androidx.compose.ui.text.input.OffsetMapping))(text: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/AnnotatedString, offsetMapping: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/OffsetMapping)` **This function is deprecated.** The TextField flavors that use VisualTransformation are deprecated. | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[equals](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#equals(kotlin.Any))(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` **This function is deprecated.** The TextField flavors that use VisualTransformation are deprecated. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[hashCode](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#hashCode())()` **This function is deprecated.** The TextField flavors that use VisualTransformation are deprecated. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `[toString](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#toString())()` **This function is deprecated.** The TextField flavors that use VisualTransformation are deprecated. | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/OffsetMapping` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#offsetMapping()` **This property is deprecated.** The TextField flavors that use VisualTransformation are deprecated. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/AnnotatedString` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#text()` **This property is deprecated.** The TextField flavors that use VisualTransformation are deprecated. | Cmn |

## Public constructors

### TransformedText

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01)

```
[TransformedText](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#TransformedText(androidx.compose.ui.text.AnnotatedString,androidx.compose.ui.text.input.OffsetMapping))(text: AnnotatedString, offsetMapping: OffsetMapping)
```

> [!CAUTION]
> **This function is deprecated.**   
> The TextField flavors that use VisualTransformation are deprecated. Please refer to OutputTransformation.

## Public functions

### equals

Cmn

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#equals(kotlin.Any))(other: Any?): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> The TextField flavors that use VisualTransformation are deprecated. Please refer to OutputTransformation.

### hashCode

Cmn

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#hashCode())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> The TextField flavors that use VisualTransformation are deprecated. Please refer to OutputTransformation.

### toString

Cmn

```
open fun [toString](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/input/TransformedText#toString())(): String
```

> [!CAUTION]
> **This function is deprecated.**   
> The TextField flavors that use VisualTransformation are deprecated. Please refer to OutputTransformation.

## Public properties

### offsetMapping

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01)

```
val offsetMapping: OffsetMapping
```

> [!CAUTION]
> **This property is deprecated.**   
> The TextField flavors that use VisualTransformation are deprecated. Please refer to OutputTransformation.

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

### text

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.13.0-rc01)

```
val text: AnnotatedString
```

> [!CAUTION]
> **This property is deprecated.**   
> The TextField flavors that use VisualTransformation are deprecated. Please refer to OutputTransformation.

The transformed text