# AnimationParameterBuilders

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) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
public final class AnimationParameterBuilders
```

<br />

*** ** * ** ***

Builders for parameters that can be used to customize an animation.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) public final class https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationParameters` Animation specs of duration, easing and repeat delay. |
| `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` |
| `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) public final class https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.AnimationSpec` Animation parameters that can be added to any animatable node. |
| `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` |
| `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) public interface https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.Easing` Interface defining the easing to be used for adjusting an animation's fraction. |
| `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) public final class https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.Repeatable` The repeatable mode to be used for specifying how many times animation will be repeated. |
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.Repeatable.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders.Repeatable` |

| ### Constants |
|---|---|
| `static final int` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders#REPEAT_MODE_RESTART() = 1` The repeat mode where animation restarts from the beginning when repeated. |
| `static final int` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders#REPEAT_MODE_REVERSE() = 2` The repeat mode where animation is played in reverse when repeated. |
| `static final int` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders#REPEAT_MODE_UNKNOWN() = 0` The unknown repeat mode. |

## Constants

### REPEAT_MODE_RESTART

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public static final int REPEAT_MODE_RESTART = 1
```

The repeat mode where animation restarts from the beginning when repeated.

### REPEAT_MODE_REVERSE

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public static final int REPEAT_MODE_REVERSE = 2
```

The repeat mode where animation is played in reverse when repeated.

### REPEAT_MODE_UNKNOWN

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public static final int REPEAT_MODE_UNKNOWN = 0
```

The unknown repeat mode.