# MutableContentTransform

Artifact: [androidx.compose.animation:animation](https://developer.android.com/jetpack/androidx/releases/compose-animation) [View Source](https://cs.android.com/search?q=file:androidx/compose/animation/AnimatedContent.kt+class:androidx.compose.animation.MutableContentTransform) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.12.0) Common/AllAndroid/JVM
- Cmn

  ```
  @ExperimentalDeferredTransitionApi
  class MutableContentTransform
  ```

*** ** * ** ***

An object that allows manual manipulation of both entering and exiting content during the deferred phase (initiated by `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DeferredTransitionState#defer(kotlin.Any)`) of an `https://developer.android.com/reference/kotlin/androidx/compose/animation/AnimatedContent.composable#AnimatedContent(kotlin.Any,androidx.compose.ui.Modifier,kotlin.Function1,androidx.compose.ui.Alignment,kotlin.String,kotlin.Function1,kotlin.Function2)` transition.

Use `https://developer.android.com/reference/kotlin/androidx/compose/animation/MutableContentTransform#initialContentTransform(kotlin.Function2)` to define transformations for the exiting (initial) content and `https://developer.android.com/reference/kotlin/androidx/compose/animation/MutableContentTransform#targetContentTransform(kotlin.Function2)` for the entering (target) content.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/MutableTransform` |   |

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/MutableContentTransform#initialContentTransform(kotlin.Function2)(block: https://developer.android.com/reference/kotlin/androidx/compose/animation/TransformScope.(fullSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Define the manual transformation to apply to the exiting content during the deferred phase. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/MutableContentTransform#targetContentTransform(kotlin.Function2)(block: https://developer.android.com/reference/kotlin/androidx/compose/animation/TransformScope.(fullSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Define the manual transformation to apply to the entering content during the deferred phase. | Cmn |

## Public functions

### initialContentTransform

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

```
fun initialContentTransform(block: TransformScope.(fullSize: IntSize) -> Unit): Unit
```

Define the manual transformation to apply to the exiting content during the deferred phase.

| Parameters |
|---|---|
| `block: https://developer.android.com/reference/kotlin/androidx/compose/animation/TransformScope.(fullSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | A lambda that applies transformations to the provided `https://developer.android.com/reference/kotlin/androidx/compose/animation/TransformScope`. |

### targetContentTransform

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

```
fun targetContentTransform(block: TransformScope.(fullSize: IntSize) -> Unit): Unit
```

Define the manual transformation to apply to the entering content during the deferred phase.

| Parameters |
|---|---|
| `block: https://developer.android.com/reference/kotlin/androidx/compose/animation/TransformScope.(fullSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | A lambda that applies transformations to the provided `https://developer.android.com/reference/kotlin/androidx/compose/animation/TransformScope`. |