# PropertyValuesHolder

Artifact: [androidx.core:core-animation](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/animation/PropertyValuesHolder.java+class:androidx.core.animation.PropertyValuesHolder) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

*** ** * ** ***


```
class PropertyValuesHolder : Cloneable
```

<br />

*** ** * ** ***

This class holds information about a property and the values that that property should take on during an animation. PropertyValuesHolder objects can be used to create animations with ValueAnimator or ObjectAnimator that operate on several different properties in parallel.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#clone()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#getPropertyName()()` Gets the name of the property that will be animated. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofFloat(java.lang.String,float...)(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>)` Constructs and returns a PropertyValuesHolder with a given property name and set of float values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofFloat(android.util.Property<?,java.lang.Float>,float...)(property: https://developer.android.com/reference/android/util/Property.html<*, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>)` Constructs and returns a PropertyValuesHolder with a given property and set of float values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofInt(java.lang.String,int...)(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>)` Constructs and returns a PropertyValuesHolder with a given property name and set of int values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofInt(android.util.Property<?,java.lang.Integer>,int...)(property: https://developer.android.com/reference/android/util/Property.html<*, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>)` Constructs and returns a PropertyValuesHolder with a given property and set of int values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofKeyframe(java.lang.String,androidx.core.animation.Keyframe...)(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!>)` Constructs and returns a PropertyValuesHolder object with the specified property name and set of values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofKeyframe(android.util.Property,androidx.core.animation.Keyframe...)(property: https://developer.android.com/reference/android/util/Property.html, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!>)` Constructs and returns a PropertyValuesHolder object with the specified property and set of values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofMultiFloat(java.lang.String,android.graphics.Path)(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://developer.android.com/reference/android/graphics/Path.html)` Constructs and returns a PropertyValuesHolder with a given property name to use as a multi-float setter. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofMultiFloat(java.lang.String,float[][])(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>!>)` Constructs and returns a PropertyValuesHolder with a given property name and set of `float[]` values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <V> https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofMultiFloat(java.lang.String,androidx.core.animation.TypeConverter<V,float[]>,androidx.core.animation.TypeEvaluator<V>,V...)( propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<V!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>!>, evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<V!>, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<V!> )` Constructs and returns a PropertyValuesHolder with a given property and set of Object values for use with ObjectAnimator multi-value setters. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <T> https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofMultiFloat(java.lang.String,androidx.core.animation.TypeConverter<T,float[]>,androidx.core.animation.TypeEvaluator<T>,androidx.core.animation.Keyframe...)( propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>!>?, evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<T!>, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!> )` Constructs and returns a PropertyValuesHolder object with the specified property name or setter name for use in a multi-float setter function using ObjectAnimator. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofMultiInt(java.lang.String,android.graphics.Path)(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://developer.android.com/reference/android/graphics/Path.html)` Constructs and returns a PropertyValuesHolder with a given property name to use as a multi-int setter. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofMultiInt(java.lang.String,int[][])(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!>)` Constructs and returns a PropertyValuesHolder with a given property name and set of `int[]` values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <V> https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofMultiInt(java.lang.String,androidx.core.animation.TypeConverter<V,int[]>,androidx.core.animation.TypeEvaluator<V>,V...)( propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<V!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!>, evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<V!>, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<V!> )` Constructs and returns a PropertyValuesHolder with a given property and set of Object values for use with ObjectAnimator multi-value setters. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <T> https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofMultiInt(java.lang.String,androidx.core.animation.TypeConverter<T,int[]>,androidx.core.animation.TypeEvaluator<T>,androidx.core.animation.Keyframe...)( propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!>?, evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<T!>, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!> )` Constructs and returns a PropertyValuesHolder object with the specified property name or setter name for use in a multi-int setter function using ObjectAnimator. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofObject(java.lang.String,androidx.core.animation.TypeConverter<android.graphics.PointF,?>,android.graphics.Path)( propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<https://developer.android.com/reference/android/graphics/PointF.html!, *>?, path: https://developer.android.com/reference/android/graphics/Path.html )` Constructs and returns a PropertyValuesHolder with a given property name and a Path along which the values should be animated. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofObject(java.lang.String,androidx.core.animation.TypeEvaluator,java.lang.Object...)( propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!> )` Constructs and returns a PropertyValuesHolder with a given property name and set of Object values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `<V> https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofObject(android.util.Property<?,V>,androidx.core.animation.TypeConverter<android.graphics.PointF,V>,android.graphics.Path)( property: https://developer.android.com/reference/android/util/Property.html<*, V!>, converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<https://developer.android.com/reference/android/graphics/PointF.html!, V!>?, path: https://developer.android.com/reference/android/graphics/Path.html )` Constructs and returns a PropertyValuesHolder with a given property and a Path along which the values should be animated. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <V> https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofObject(android.util.Property,androidx.core.animation.TypeEvaluator<V>,V...)( property: https://developer.android.com/reference/android/util/Property.html, evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<V!>, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<V!> )` Constructs and returns a PropertyValuesHolder with a given property and set of Object values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <T, V> https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#ofObject(android.util.Property<?,V>,androidx.core.animation.TypeConverter<T,V>,androidx.core.animation.TypeEvaluator<T>,T...)( property: https://developer.android.com/reference/android/util/Property.html<*, V!>, converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<T!, V!>, evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<T!>, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<T!> )` Constructs and returns a PropertyValuesHolder with a given property and set of Object values. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setConverter(androidx.core.animation.TypeConverter)(converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter?)` Sets the converter to convert from the values type to the setter's parameter type. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setEvaluator(androidx.core.animation.TypeEvaluator)(evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator)` The TypeEvaluator will be automatically determined based on the type of values supplied to PropertyValuesHolder. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setFloatValues(float...)(values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>)` Set the animated values for this object to this set of floats. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setIntValues(int...)(values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>)` Set the animated values for this object to this set of ints. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setKeyframes(androidx.core.animation.Keyframe...)(values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!>)` Set the animated values for this object to this set of Keyframes. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setObjectValues(java.lang.Object...)(values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>)` Set the animated values for this object to this set of Objects. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setProperty(android.util.Property)(property: https://developer.android.com/reference/android/util/Property.html)` Sets the property that will be animated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setPropertyName(java.lang.String)(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Sets the name of the property that will be animated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#toString()()` |

## Public functions

### clone

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

```
fun clone(): PropertyValuesHolder
```

### getPropertyName

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

```
fun getPropertyName(): String
```

Gets the name of the property that will be animated. This name will be used to derive a setter function that will be called to set animated values. For example, a property name of `foo` will result in a call to the function `setFoo()` on the target object. If either `valueFrom` or `valueTo` is null, then a getter function will also be derived and called.

### ofFloat

```
java-static fun ofFloat(propertyName: String, values: FloatArray<Float>): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property name and set of float values.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>` | The values that the named property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

### ofFloat

```
java-static fun ofFloat(property: Property<*, Float!>, values: FloatArray<Float>): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property and set of float values.

| Parameters |
|---|---|
| `property: https://developer.android.com/reference/android/util/Property.html<*, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>` | The property being animated. Should not be null. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>` | The values that the property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

### ofInt

```
java-static fun ofInt(propertyName: String, values: IntArray<Int>): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property name and set of int values.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | The values that the named property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

### ofInt

```
java-static fun ofInt(property: Property<*, Int!>, values: IntArray<Int>): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property and set of int values.

| Parameters |
|---|---|
| `property: https://developer.android.com/reference/android/util/Property.html<*, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | The property being animated. Should not be null. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | The values that the property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

### ofKeyframe

```
@SafeVarargs
java-static fun ofKeyframe(propertyName: String, values: Array<Keyframe!>): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder object with the specified property name and set of values. These values can be of any type, but the type should be consistent so that an appropriate `https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator` can be found that matches the common type.

If there is only one value, it is assumed to be the end value of an animation, and an initial value will be derived, if possible, by calling a getter function on the object. Also, if any value is null, the value will be filled in when the animation starts in the same way. This mechanism of automatically getting null values only works if the PropertyValuesHolder object is used in conjunction `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator`, and with a getter function derived automatically from `propertyName`, since otherwise PropertyValuesHolder has no way of determining what the value should be.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property associated with this set of values. This can be the actual property name to be used when using a ObjectAnimator object, or just a name used to get animated values, such as if this object is used with an ValueAnimator object. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!>` | The set of values to animate between. |

### ofKeyframe

```
@SafeVarargs
java-static fun ofKeyframe(property: Property, values: Array<Keyframe!>): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder object with the specified property and set of values. These values can be of any type, but the type should be consistent so that an appropriate `https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator` can be found that matches the common type.

If there is only one value, it is assumed to be the end value of an animation, and an initial value will be derived, if possible, by calling the property's `https://developer.android.com/reference/android/util/Property.html#get(T)` function. Also, if any value is null, the value will be filled in when the animation starts in the same way. This mechanism of automatically getting null values only works if the PropertyValuesHolder object is used in conjunction with `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator`, since otherwise PropertyValuesHolder has no way of determining what the value should be.

| Parameters |
|---|---|
| `property: https://developer.android.com/reference/android/util/Property.html` | The property associated with this set of values. Should not be null. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!>` | The set of values to animate between. |

### ofMultiFloat

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

```
java-static fun ofMultiFloat(propertyName: String, path: Path): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property name to use as a multi-float setter. The values are animated along the path, with the first parameter of the setter set to the x coordinate and the second set to the y coordinate.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. Can also be the case-sensitive name of the entire setter method. Should not be null. The setter must take exactly two `float` parameters. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The Path along which the values should be animated. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofPropertyValuesHolder(java.lang.Object,androidx.core.animation.PropertyValuesHolder...)` |   |

### ofMultiFloat

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

```
java-static fun ofMultiFloat(propertyName: String, values: Array<FloatArray<Float>!>): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property name and set of `float[]` values. At least two `float[]` values must be supplied, a start and end value. If more values are supplied, the values will be animated from the start, through all intermediate values to the end value. When used with ObjectAnimator, the elements of the array represent the parameters of the setter function.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. Can also be the case-sensitive name of the entire setter method. Should not be null. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>!>` | The values that the property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/FloatArrayEvaluator#FloatArrayEvaluator(float[])` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofMultiFloat(java.lang.Object,java.lang.String,androidx.core.animation.TypeConverter<T,float[]>,androidx.core.animation.TypeEvaluator<T>,T...)` |   |

### ofMultiFloat

```
@SafeVarargs
java-static fun <V> ofMultiFloat(
    propertyName: String,
    converter: TypeConverter<V!, FloatArray<Float>!>,
    evaluator: TypeEvaluator<V!>,
    values: Array<V!>
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property and set of Object values for use with ObjectAnimator multi-value setters. The Object values are converted to `float[]` using the converter.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The property being animated or complete name of the setter. Should not be null. |
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<V!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>!>` | Used to convert the animated value to setter parameters. |
| `evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<V!>` | A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<V!>` | The values that the property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofMultiFloat(java.lang.Object,java.lang.String,androidx.core.animation.TypeConverter<T,float[]>,androidx.core.animation.TypeEvaluator<T>,T...)` |   |

### ofMultiFloat

```
@SafeVarargs
java-static fun <T> ofMultiFloat(
    propertyName: String,
    converter: TypeConverter<T!, FloatArray<Float>!>?,
    evaluator: TypeEvaluator<T!>,
    values: Array<Keyframe!>
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder object with the specified property name or setter name for use in a multi-float setter function using ObjectAnimator. The values can be of any type, but the type should be consistent so that the supplied `https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator` can be used to to evaluate the animated value. The `converter` converts the values to parameters in the setter function.

At least two values must be supplied, a start and an end value.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property to associate with the set of values. This may also be the complete name of a setter function. |
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>!>?` | Converts `values` into float parameters for the setter. Can be null if the Keyframes have float\[\] values. |
| `evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<T!>` | Used to interpolate between values. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!>` | The values at specific fractional times to evaluate between |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | A PropertyValuesHolder for a multi-float parameter setter. |

### ofMultiInt

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

```
java-static fun ofMultiInt(propertyName: String, path: Path): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property name to use as a multi-int setter. The values are animated along the path, with the first parameter of the setter set to the x coordinate and the second set to the y coordinate.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. Can also be the case-sensitive name of the entire setter method. Should not be null. The setter must take exactly two `int` parameters. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The Path along which the values should be animated. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofPropertyValuesHolder(java.lang.Object,androidx.core.animation.PropertyValuesHolder...)` |   |

### ofMultiInt

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

```
java-static fun ofMultiInt(propertyName: String, values: Array<IntArray<Int>!>): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property name and set of `int[]` values. At least two `int[]` values must be supplied, a start and end value. If more values are supplied, the values will be animated from the start, through all intermediate values to the end value. When used with ObjectAnimator, the elements of the array represent the parameters of the setter function.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. Can also be the case-sensitive name of the entire setter method. Should not be null. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!>` | The values that the property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/IntArrayEvaluator#IntArrayEvaluator(int[])` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofMultiInt(java.lang.Object,java.lang.String,androidx.core.animation.TypeConverter<T,int[]>,androidx.core.animation.TypeEvaluator<T>,T...)` |   |

### ofMultiInt

```
@SafeVarargs
java-static fun <V> ofMultiInt(
    propertyName: String,
    converter: TypeConverter<V!, IntArray<Int>!>,
    evaluator: TypeEvaluator<V!>,
    values: Array<V!>
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property and set of Object values for use with ObjectAnimator multi-value setters. The Object values are converted to `int[]` using the converter.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The property being animated or complete name of the setter. Should not be null. |
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<V!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!>` | Used to convert the animated value to setter parameters. |
| `evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<V!>` | A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<V!>` | The values that the property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofMultiInt(java.lang.Object,java.lang.String,androidx.core.animation.TypeConverter<T,int[]>,androidx.core.animation.TypeEvaluator<T>,T...)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofPropertyValuesHolder(java.lang.Object,androidx.core.animation.PropertyValuesHolder...)` |   |

### ofMultiInt

```
@SafeVarargs
java-static fun <T> ofMultiInt(
    propertyName: String,
    converter: TypeConverter<T!, IntArray<Int>!>?,
    evaluator: TypeEvaluator<T!>,
    values: Array<Keyframe!>
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder object with the specified property name or setter name for use in a multi-int setter function using ObjectAnimator. The values can be of any type, but the type should be consistent so that the supplied `https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator` can be used to to evaluate the animated value. The `converter` converts the values to parameters in the setter function.

At least two values must be supplied, a start and an end value.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property to associate with the set of values. This may also be the complete name of a setter function. |
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>!>?` | Converts `values` into int parameters for the setter. Can be null if the Keyframes have int\[\] values. |
| `evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<T!>` | Used to interpolate between values. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!>` | The values at specific fractional times to evaluate between |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | A PropertyValuesHolder for a multi-int parameter setter. |

### ofObject

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

```
java-static fun ofObject(
    propertyName: String,
    converter: TypeConverter<PointF!, *>?,
    path: Path
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property name and a Path along which the values should be animated. This variant supports a `TypeConverter` to convert from `PointF` to the target type.

The PointF passed to `converter` or `property`, if `converter` is `null`, is reused on each animation frame and should not be stored by the setter or TypeConverter.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. |
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<https://developer.android.com/reference/android/graphics/PointF.html!, *>?` | Converts a PointF to the type associated with the setter. May be null if conversion is unnecessary. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The Path along which the values should be animated. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

### ofObject

```
java-static fun ofObject(
    propertyName: String,
    evaluator: TypeEvaluator,
    values: Array<Any!>
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property name and set of Object values. This variant also takes a TypeEvaluator because the system cannot automatically interpolate between objects of unknown type.

**Note:** The Object values are stored as references to the original objects, which means that changes to those objects after this method is called will affect the values on the PropertyValuesHolder. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. |
| `evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator` | A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>` | The values that the named property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

### ofObject

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

```
java-static fun <V> ofObject(
    property: Property<*, V!>,
    converter: TypeConverter<PointF!, V!>?,
    path: Path
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property and a Path along which the values should be animated. This variant supports a `TypeConverter` to convert from `PointF` to the target type.

The PointF passed to `converter` or `property`, if `converter` is `null`, is reused on each animation frame and should not be stored by the setter or TypeConverter.

| Parameters |
|---|---|
| `property: https://developer.android.com/reference/android/util/Property.html<*, V!>` | The property being animated. Should not be null. |
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<https://developer.android.com/reference/android/graphics/PointF.html!, V!>?` | Converts a PointF to the type associated with the setter. May be null if conversion is unnecessary. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The Path along which the values should be animated. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

### ofObject

```
@SafeVarargs
java-static fun <V> ofObject(
    property: Property,
    evaluator: TypeEvaluator<V!>,
    values: Array<V!>
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property and set of Object values. This variant also takes a TypeEvaluator because the system cannot automatically interpolate between objects of unknown type.

**Note:** The Object values are stored as references to the original objects, which means that changes to those objects after this method is called will affect the values on the PropertyValuesHolder. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

| Parameters |
|---|---|
| `property: https://developer.android.com/reference/android/util/Property.html` | The property being animated. Should not be null. |
| `evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<V!>` | A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<V!>` | The values that the property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

### ofObject

```
@SafeVarargs
java-static fun <T, V> ofObject(
    property: Property<*, V!>,
    converter: TypeConverter<T!, V!>,
    evaluator: TypeEvaluator<T!>,
    values: Array<T!>
): PropertyValuesHolder
```

Constructs and returns a PropertyValuesHolder with a given property and set of Object values. This variant also takes a TypeEvaluator because the system cannot automatically interpolate between objects of unknown type. This variant also takes a `TypeConverter` to convert from animated values to the type of the property. If only one value is supplied, the `TypeConverter` must be a `https://developer.android.com/reference/kotlin/androidx/core/animation/BidirectionalTypeConverter` to retrieve the current value.

**Note:** The Object values are stored as references to the original objects, which means that changes to those objects after this method is called will affect the values on the PropertyValuesHolder. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

| Parameters |
|---|---|
| `property: https://developer.android.com/reference/android/util/Property.html<*, V!>` | The property being animated. Should not be null. |
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<T!, V!>` | Converts the animated object to the Property type. |
| `evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator<T!>` | A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<T!>` | The values that the property will animate between. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` | PropertyValuesHolder The constructed PropertyValuesHolder object. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#setConverter(androidx.core.animation.TypeConverter)` |   |
| `https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter` |   |

### setConverter

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

```
fun setConverter(converter: TypeConverter?): Unit
```

Sets the converter to convert from the values type to the setter's parameter type. If only one value is supplied, <var translate="no">converter</var> must be a `https://developer.android.com/reference/kotlin/androidx/core/animation/BidirectionalTypeConverter`.

| Parameters |
|---|---|
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter?` | The converter to use to convert values. |

### setEvaluator

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

```
fun setEvaluator(evaluator: TypeEvaluator): Unit
```

The TypeEvaluator will be automatically determined based on the type of values supplied to PropertyValuesHolder. The evaluator can be manually set, however, if so desired. This may be important in cases where either the type of the values supplied do not match the way that they should be interpolated between, or if the values are of a custom type or one not currently understood by the animation system. Currently, only values of type float and int (and their Object equivalents: Float and Integer) are correctly interpolated; all other types require setting a TypeEvaluator.

| Parameters |
|---|---|
| `evaluator: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator` |   |

### setFloatValues

```
fun setFloatValues(values: FloatArray<Float>): Unit
```

Set the animated values for this object to this set of floats. If there is only one value, it is assumed to be the end value of an animation, and an initial value will be derived, if possible, by calling a getter function on the object. Also, if any value is null, the value will be filled in when the animation starts in the same way. This mechanism of automatically getting null values only works if the PropertyValuesHolder object is used in conjunction `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator`, and with a getter function derived automatically from `propertyName`, since otherwise PropertyValuesHolder has no way of determining what the value should be.

| Parameters |
|---|---|
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>` | One or more values that the animation will animate between. |

### setIntValues

```
fun setIntValues(values: IntArray<Int>): Unit
```

Set the animated values for this object to this set of ints. If there is only one value, it is assumed to be the end value of an animation, and an initial value will be derived, if possible, by calling a getter function on the object. Also, if any value is null, the value will be filled in when the animation starts in the same way. This mechanism of automatically getting null values only works if the PropertyValuesHolder object is used in conjunction `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator`, and with a getter function derived automatically from `propertyName`, since otherwise PropertyValuesHolder has no way of determining what the value should be.

| Parameters |
|---|---|
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | One or more values that the animation will animate between. |

### setKeyframes

```
fun setKeyframes(values: Array<Keyframe!>): Unit
```

Set the animated values for this object to this set of Keyframes.

| Parameters |
|---|---|
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe!>` | One or more values that the animation will animate between. |

### setObjectValues

```
fun setObjectValues(values: Array<Any!>): Unit
```

Set the animated values for this object to this set of Objects. If there is only one value, it is assumed to be the end value of an animation, and an initial value will be derived, if possible, by calling a getter function on the object. Also, if any value is null, the value will be filled in when the animation starts in the same way. This mechanism of automatically getting null values only works if the PropertyValuesHolder object is used in conjunction `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator`, and with a getter function derived automatically from `propertyName`, since otherwise PropertyValuesHolder has no way of determining what the value should be.

**Note:** The Object values are stored as references to the original objects, which means that changes to those objects after this method is called will affect the values on the PropertyValuesHolder. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

| Parameters |
|---|---|
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>` | One or more values that the animation will animate between. |

### setProperty

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

```
fun setProperty(property: Property): Unit
```

Sets the property that will be animated.

Note that if this PropertyValuesHolder object is used with ObjectAnimator, the property must exist on the target object specified in that ObjectAnimator.

| Parameters |
|---|---|
| `property: https://developer.android.com/reference/android/util/Property.html` | The property being animated. |

### setPropertyName

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

```
fun setPropertyName(propertyName: String): Unit
```

Sets the name of the property that will be animated. This name is used to derive a setter function that will be called to set animated values. For example, a property name of `foo` will result in a call to the function `setFoo()` on the target object. If either `valueFrom` or `valueTo` is null, then a getter function will also be derived and called.

Note that the setter function derived from this property name must take the same parameter type as the `valueFrom` and `valueTo` properties, otherwise the call to the setter function will fail.

| Parameters |
|---|---|
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated. |

### toString

```
fun toString(): String
```