# 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)

*** ** * ** ***


```
public final class GltfAnimation.AnimationState
```

<br />

*** ** * ** ***

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

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/GltfAnimation.AnimationState` | `https://developer.android.com/reference/androidx/xr/scenecore/GltfAnimation.AnimationState#PAUSED()` The animation is currently paused. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/GltfAnimation.AnimationState` | `https://developer.android.com/reference/androidx/xr/scenecore/GltfAnimation.AnimationState#PLAYING()` The animation is currently playing. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/xr/scenecore/GltfAnimation.AnimationState` | `https://developer.android.com/reference/androidx/xr/scenecore/GltfAnimation.AnimationState#STOPPED()` The animation is currently stopped. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/xr/scenecore/GltfAnimation.AnimationState#toString()()` |

## Public fields

### PAUSED

```
public static final @NonNull GltfAnimation.AnimationState PAUSED
```

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/androidx/xr/scenecore/GltfAnimation#resume()`d to continue playback from the paused point.

### PLAYING

```
public static final @NonNull GltfAnimation.AnimationState PLAYING
```

The animation is currently playing.

### STOPPED

```
public static final @NonNull GltfAnimation.AnimationState STOPPED
```

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/androidx/xr/scenecore/GltfAnimation#start()`ed to play again.

## Public methods

### toString

```
public @NonNull String toString()
```