# GltfAnimation.AnimationState

Artifact: [androidx.xr.scenecore:scenecore](https://developer.android.com/jetpack/androidx/releases/xr-scenecore) [View Source](https://cs.android.com/search?q=file:androidx/xr/scenecore/GltfAnimation.kt+class:androidx.xr.scenecore.GltfAnimation.AnimationState) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/xr-scenecore#1.0.0)

*** ** * ** ***


```
class GltfAnimation.AnimationState
```

<br />

*** ** * ** ***

Specifies the current animation state of this `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation`.

## Summary

| ### Public companion properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation.AnimationState` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation.AnimationState#PAUSED()` The animation is currently paused. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation.AnimationState` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation.AnimationState#PLAYING()` The animation is currently playing. |
| `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation.AnimationState` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation.AnimationState#STOPPED()` The animation is currently stopped. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation.AnimationState#toString()()` |

## Public companion properties

### PAUSED

```
val PAUSED: GltfAnimation.AnimationState
```

The animation is currently paused. When in this state, the animation is frozen at the current frame. The animation can be `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation#resume()`d to continue playback from the paused point.

### PLAYING

```
val PLAYING: GltfAnimation.AnimationState
```

The animation is currently playing.

### STOPPED

```
val STOPPED: GltfAnimation.AnimationState
```

The animation is currently stopped. When in this state, the animation playback time is reset to the beginning. The animation must be `https://developer.android.com/reference/kotlin/androidx/xr/scenecore/GltfAnimation#start()`ed to play again.

## Public functions

### toString

```
open fun toString(): String
```