# TextMotionScope

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/StyleScope.kt+class:androidx.compose.foundation.style.TextMotionScope) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0) Common/All
- Cmn

  ```
  @ExperimentalFoundationStyleApi
  interface TextMotionScope
  ```
Known direct subclasses [TextStyleStyleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextStyleStyleScope)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextStyleStyleScope` | An interface that introduces the text property to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` receiver scope. |

Known indirect subclasses [StyleScope](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` | A `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleScope` is the receiver scope of a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` lambda. |

*** ** * ** ***

An interface that introduces the `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextMotionScope#textMotion(androidx.compose.ui.text.style.TextMotion)` property to a `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/Style` receiver scope.

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/TextMotionScope#textMotion(androidx.compose.ui.text.style.TextMotion)(value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextMotion)` Sets the text motion strategy, which can be used to optimize for readability or for smooth animations. | Cmn |

## Public functions

### textMotion

Cmn Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.12.0)

```
fun textMotion(value: TextMotion): Unit
```

Sets the text motion strategy, which can be used to optimize for readability or for smooth animations. This property is inherited by child text components if not overridden. This affects text layout and is a component of a `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle`.

This property is inherited.

| Parameters |
|---|---|
| `value: https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextMotion` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/style/TextMotion` strategy to apply. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/text/TextStyle` |   |