# AnimationParameterBuilders

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

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/wear/protolayout/expression/AnimationParameterBuilders "View this page in Java")


```
class AnimationParameterBuilders
```

<br />

*** ** * ** ***

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

## Summary

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

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [REPEAT_MODE_RESTART](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/AnimationParameterBuilders#REPEAT_MODE_RESTART())` = 1` The repeat mode where animation restarts from the beginning when repeated. |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [REPEAT_MODE_REVERSE](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/AnimationParameterBuilders#REPEAT_MODE_REVERSE())` = 2` The repeat mode where animation is played in reverse when repeated.        |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` [REPEAT_MODE_UNKNOWN](https://developer.android.com/reference/kotlin/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)
const val REPEAT_MODE_RESTART = 1: Int
```

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)
const val REPEAT_MODE_REVERSE = 2: Int
```

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)
const val REPEAT_MODE_UNKNOWN = 0: Int
```

The unknown repeat mode.