# AnimationParameterBuilders.AnimationParameters

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.AnimationParameters) 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.AnimationParameters
```

<br />

*** ** * ** ***

Animation specs of duration, easing and repeat delay.

## Summary

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

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) long` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationParameters#getDelayMillis()()` Gets animation delay in millis. |
| `@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) long` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationParameters#getDurationMillis()()` Gets the duration of the animation in milliseconds. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.Easing` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationParameters#getEasing()()` Gets the easing to be used for adjusting an animation's fraction. |
| `@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.AnimationParameters#toString()()` |

## Public methods

### getDelayMillis

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

```
public @IntRange(from = 0) long getDelayMillis()
```

Gets animation delay in millis. When used outside repeatable, this is the delay to start the animation in milliseconds. When set inside repeatable, this is the delay before repeating animation in milliseconds.

### getDurationMillis

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

```
public @IntRange(from = 0) long getDurationMillis()
```

Gets the duration of the animation in milliseconds.

### getEasing

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

```
public @Nullable AnimationParameterBuilders.Easing getEasing()
```

Gets the easing to be used for adjusting an animation's fraction.

### toString

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