> Documentation index: https://developer.android.com/reference/llms.txt

# ComposeAnimation

Artifact: [androidx.compose.animation:animation-tooling-internal](https://developer.android.com/jetpack/androidx/releases/compose-animation.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/compose/animation/tooling/ComposeAnimation.kt+class:androidx.compose.animation.tooling.ComposeAnimation) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation.md.txt#1.0.0)


```
interface ComposeAnimation
```

<br />

*** ** * ** ***

Simple interface to make it easier to share Compose animation objects between `ui-tooling` and Android Studio. Since both ends communicate mostly using bytecode manipulation and reflection, being able to parse these objects into a common type makes

## Summary

| ### Public properties |
|---|---|
| `Any` | `animationObject` The actual animation object. |
| `open String?` | `label` A label which can be used to represent the animation as text in Android Studio. |
| `open Set<Any>` | `states` All the available states of a `TransitionAnimation`. |
| `ComposeAnimationType` | `type` The animation type. |

## Public properties

### animationObject

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

```
val animationObject: Any
```

The actual animation object.

### label

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

```
open val label: String?
```

A label which can be used to represent the animation as text in Android Studio. Null if the label is not set or if it can't be inferred from the animation states.

### states

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

```
open val states: Set<Any>
```

All the available states of a `TransitionAnimation`.

| Throws |
|---|---|
| `UnsupportedOperationException` | if `type` does not return `TRANSITION_ANIMATION`. |

### type

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

```
val type: ComposeAnimationType
```

The animation type. Ideally, the type should be checked before accessing properties specific to a certain type, e.g. `states`.