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

# ComposeAnimationType

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.ComposeAnimationType) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation.md.txt#1.0.0)


```
enum ComposeAnimationType : Enum<ComposeAnimationType>
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html)\<[ComposeAnimationType](https://developer.android.com/reference/kotlin/androidx/compose/animation/tooling/ComposeAnimationType.md.txt)\> ||
|   | ↳ | [androidx.compose.animation.tooling.ComposeAnimationType](https://developer.android.com/reference/kotlin/androidx/compose/animation/tooling/ComposeAnimationType.md.txt) |

*** ** * ** ***

Type of the animation. Different types might have different properties, for example a `TransitionAnimation` (represented by `TRANSITION_ANIMATION`) has a set of states associated with it.

## Summary

| ### Enum Values |
|---|---|
| `ANIMATABLE` | `Animatable` compose animation. |
| `ANIMATED_CONTENT` | `AnimatedContent` animation. |
| `ANIMATED_VALUE` |   |
| `ANIMATED_VISIBILITY` |   |
| `ANIMATE_CONTENT_SIZE` | `animateContentSize` compose animation. |
| `ANIMATE_X_AS_STATE` | `animateXAsState` animations, for example `animateDpAsState`, `animateIntAsState`. |
| `DECAY_ANIMATION` | `DecayAnimation` animation. |
| `INFINITE_TRANSITION` | `rememberInfiniteTransition` animation. |
| `TARGET_BASED_ANIMATION` | `TargetBasedAnimation` animation. |
| `TRANSITION_ANIMATION` |   |
| `TRIGGER` | Trigger allowing changing the state of Composable. |
| `UNSUPPORTED` | Detected animation without a support - only `ComposeAnimation.label` and `ComposeAnimation.type` are provided. |

| ### Public functions |
|---|---|
| `ComposeAnimationType` | `valueOf(value: String)` Returns the enum constant of this type with the specified name. |
| `Array<ComposeAnimationType>` | `values()` Returns an array containing the constants of this enum type, in the order they're declared. |

| ### Public properties |
|---|---|
| `EnumEntries<ComposeAnimationType>` | `entries` Returns an immutable `kotlin.enums.EnumEntries` list containing the constants of this enum type, in the order they're declared. |

## Enum Values

### ANIMATABLE

```
val ComposeAnimationType.ANIMATABLE: ComposeAnimationType
```

`Animatable` compose animation.

### ANIMATED_CONTENT

```
val ComposeAnimationType.ANIMATED_CONTENT: ComposeAnimationType
```

`AnimatedContent` animation.

### ANIMATED_VALUE

```
val ComposeAnimationType.ANIMATED_VALUE: ComposeAnimationType
```

### ANIMATED_VISIBILITY

```
val ComposeAnimationType.ANIMATED_VISIBILITY: ComposeAnimationType
```

### ANIMATE_CONTENT_SIZE

```
val ComposeAnimationType.ANIMATE_CONTENT_SIZE: ComposeAnimationType
```

`animateContentSize` compose animation.

### ANIMATE_X_AS_STATE

```
val ComposeAnimationType.ANIMATE_X_AS_STATE: ComposeAnimationType
```

`animateXAsState` animations, for example `animateDpAsState`, `animateIntAsState`. Includes `animateValueAsState`.

### DECAY_ANIMATION

```
val ComposeAnimationType.DECAY_ANIMATION: ComposeAnimationType
```

`DecayAnimation` animation.

### INFINITE_TRANSITION

```
val ComposeAnimationType.INFINITE_TRANSITION: ComposeAnimationType
```

`rememberInfiniteTransition` animation.

### TARGET_BASED_ANIMATION

```
val ComposeAnimationType.TARGET_BASED_ANIMATION: ComposeAnimationType
```

`TargetBasedAnimation` animation.

### TRANSITION_ANIMATION

```
val ComposeAnimationType.TRANSITION_ANIMATION: ComposeAnimationType
```

### TRIGGER

```
val ComposeAnimationType.TRIGGER: ComposeAnimationType
```

Trigger allowing changing the state of Composable.

### UNSUPPORTED

```
val ComposeAnimationType.UNSUPPORTED: ComposeAnimationType
```

Detected animation without a support - only `ComposeAnimation.label` and `ComposeAnimation.type` are provided.

## Public functions

### valueOf

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

```
fun valueOf(value: String): ComposeAnimationType
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Throws |
|---|---|
| `kotlin.IllegalArgumentException` | if this enum type has no constant with the specified name |

### values

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

```
fun values(): Array<ComposeAnimationType>
```

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using `entries` property as a more efficient alternative returning an immutable list of enum entries.

## Public properties

### entries

```
val entries: EnumEntries<ComposeAnimationType>
```

Returns an immutable `kotlin.enums.EnumEntries` list containing the constants of this enum type, in the order they're declared.