# AnimationParameterBuilders.AnimationSpec

Artifact: [androidx.wear.protolayout:protolayout-expression](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/expression/AnimationParameterBuilders.java+class:androidx.wear.protolayout.expression.AnimationParameterBuilders.AnimationSpec) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
@RequiresSchemaVersion(major = 1, minor = 200)
public final class AnimationParameterBuilders.AnimationSpec
```

<br />

*** ** * ** ***

Animation parameters that can be added to any animatable node.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec` |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationParameters` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec#getAnimationParameters()()` Gets animation parameters including duration, easing and repeat delay. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.Repeatable` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec#getRepeatable()()` Gets the repeatable mode to be used for specifying repetition parameters for the animation. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec#toString()()` |

## Public methods

### getAnimationParameters

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable AnimationParameterBuilders.AnimationParameters getAnimationParameters()
```

Gets animation parameters including duration, easing and repeat delay.

### getRepeatable

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @Nullable AnimationParameterBuilders.Repeatable getRepeatable()
```

Gets the repeatable mode to be used for specifying repetition parameters for the animation.

### toString

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