# ObjectAnimator

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/ObjectAnimator.java+class:androidx.core.animation.ObjectAnimator) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

*** ** * ** ***

<br />

```
class ObjectAnimator : ValueAnimator
```

<br />

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [androidx.core.animation.Animator](https://developer.android.com/reference/kotlin/androidx/core/animation/Animator) |||
|   | ↳ | [androidx.core.animation.ValueAnimator](https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator) ||
|   |   | ↳ | [androidx.core.animation.ObjectAnimator](https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator) |

*** ** * ** ***

This subclass of `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator` provides support for animating properties on target objects. The constructors of this class take parameters to define the target object that will be animated as well as the name of the property that will be animated. Appropriate set/get functions are then determined internally and the animation will call these functions as necessary to animate the property.

ObjectAnimator supports the use of `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` and `https://developer.android.com/reference/kotlin/androidx/core/animation/Keyframe` in resource files to create more complex animations. Using PropertyValuesHolders allows animators to animate several properties in parallel.

Using Keyframes allows animations to follow more complex paths from the start to the end values. Note that you can specify explicit fractional values (from 0 to 1) for each keyframe to determine when, in the overall duration, the animation should arrive at that value. Alternatively, you can leave the fractions off and the keyframes will be equally distributed within the total duration. Also, a keyframe with no value will derive its value from the target object when the animator starts, just like animators with only one value specified. In addition, an optional interpolator can be specified. The interpolator will be applied on the interval between the keyframe that the interpolator is set on and the previous keyframe. When no interpolator is supplied, the default `https://developer.android.com/reference/kotlin/androidx/core/animation/AccelerateDecelerateInterpolator` will be used.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#setPropertyName(java.lang.String)` |   |

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ObjectAnimator()()` Creates a new ObjectAnimator object. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#clone()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#getNameForTrace()()` Returns the name of this animator for debugging purposes. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#getPropertyName()()` Gets the name of the property that will be animated. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#getTarget()()` The target object whose property will be animated by this animation |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofArgb(java.lang.Object,java.lang.String,int...)(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates between color values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `<T> https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofArgb(T,android.util.Property<T,java.lang.Integer>,int...)(target: T, property: https://developer.android.com/reference/android/util/Property.html<T!, 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 an ObjectAnimator that animates between color values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofFloat(java.lang.Object,java.lang.String,float...)(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates between float values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `<T> https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofFloat(T,android.util.Property<T,java.lang.Float>,float...)( target: T, property: https://developer.android.com/reference/android/util/Property.html<T!, 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 an ObjectAnimator that animates between float values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofFloat(java.lang.Object,java.lang.String,java.lang.String,android.graphics.Path)( target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, xPropertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, yPropertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, path: https://developer.android.com/reference/android/graphics/Path.html )` Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `<T> https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofFloat(T,android.util.Property<T,java.lang.Float>,android.util.Property<T,java.lang.Float>,android.graphics.Path)( target: T, xProperty: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>?, yProperty: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>?, path: https://developer.android.com/reference/android/graphics/Path.html )` Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofInt(java.lang.Object,java.lang.String,int...)(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates between int values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `<T> https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofInt(T,android.util.Property<T,java.lang.Integer>,int...)(target: T, property: https://developer.android.com/reference/android/util/Property.html<T!, 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 an ObjectAnimator that animates between int values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofInt(java.lang.Object,java.lang.String,java.lang.String,android.graphics.Path)(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, xPropertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, yPropertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, path: https://developer.android.com/reference/android/graphics/Path.html)` Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `<T> https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofInt(T,android.util.Property<T,java.lang.Integer>,android.util.Property<T,java.lang.Integer>,android.graphics.Path)( target: T, xProperty: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>?, yProperty: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>?, path: https://developer.android.com/reference/android/graphics/Path.html )` Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofMultiFloat(java.lang.Object,java.lang.String,android.graphics.Path)(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates the target using a multi-float setter along the given `Path`. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofMultiFloat(java.lang.Object,java.lang.String,float[][])( target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates over float values for a multiple parameters setter. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <T> 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...)( target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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<T!> )` Constructs and returns an ObjectAnimator that animates over values for a multiple float parameters setter. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofMultiInt(java.lang.Object,java.lang.String,android.graphics.Path)(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates the target using a multi-int setter along the given `Path`. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofMultiInt(java.lang.Object,java.lang.String,int[][])(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates over int values for a multiple parameters setter. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <T> 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...)( target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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<T!> )` Constructs and returns an ObjectAnimator that animates over values for a multiple int parameters setter. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofObject(java.lang.Object,java.lang.String,androidx.core.animation.TypeConverter<android.graphics.PointF,?>,android.graphics.Path)( target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates a property along a `Path`. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofObject(java.lang.Object,java.lang.String,androidx.core.animation.TypeEvaluator,java.lang.Object...)( target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, 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 an ObjectAnimator that animates between Object values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `<T, V> https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofObject(T,android.util.Property<T,V>,androidx.core.animation.TypeConverter<android.graphics.PointF,V>,android.graphics.Path)( target: T, property: https://developer.android.com/reference/android/util/Property.html<T!, 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 an ObjectAnimator that animates a property along a `Path`. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <T, V> https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofObject(T,android.util.Property<T,V>,androidx.core.animation.TypeEvaluator<V>,V...)( target: T, property: https://developer.android.com/reference/android/util/Property.html<T!, V!>, 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 an ObjectAnimator that animates between Object values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `@https://developer.android.com/reference/java/lang/SafeVarargs.html <T, V, P> https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofObject(T,android.util.Property<T,P>,androidx.core.animation.TypeConverter<V,P>,androidx.core.animation.TypeEvaluator<V>,V...)( target: T, property: https://developer.android.com/reference/android/util/Property.html<T!, P!>, converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<V!, P!>, 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 an ObjectAnimator that animates between Object values. |
| `java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#ofPropertyValuesHolder(java.lang.Object,androidx.core.animation.PropertyValuesHolder...)(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html, values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder!>)` Constructs and returns an ObjectAnimator that animates between the sets of values specified in `PropertyValueHolder` objects. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#setAutoCancel(boolean)(cancel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` autoCancel controls whether an ObjectAnimator will be canceled automatically when any other ObjectAnimator with the same target and properties is started. |
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#setDuration(long)(duration: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the length of the animation. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#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>)` Sets float values that will be animated between. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#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>)` Sets int values that will be animated between. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#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!>)` Sets the values to animate between for this animation. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#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/ObjectAnimator#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/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#setTarget(java.lang.Object)(target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` Sets the target object whose property will be animated by this animation. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#setupEndValues()()` This method tells the object to use appropriate information to extract ending values for the animation. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#setupStartValues()()` This method tells the object to use appropriate information to extract starting values for the animation. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()()` Starts this animation. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#toString()()` |

### Inherited Constants

From [androidx.core.animation.Animator](https://developer.android.com/reference/kotlin/androidx/core/animation/Animator) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#DURATION_INFINITE() = -1`

The value used to indicate infinite duration (e.g. when Animators repeat infinitely).
From [androidx.core.animation.ValueAnimator](https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#INFINITE() = -1`

This value used used with the `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setRepeatCount(int)` property to repeat the animation indefinitely.
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#RESTART() = 1`

When the animation reaches the end and `repeatCount` is INFINITE or a positive value, the animation restarts from the beginning.
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#REVERSE() = 2`

When the animation reaches the end and `repeatCount` is INFINITE or a positive value, the animation reverses direction on every iteration.

### Inherited functions

From [androidx.core.animation.Animator](https://developer.android.com/reference/kotlin/androidx/core/animation/Animator) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#addListener(androidx.core.animation.Animator.AnimatorListener)(listener: https://developer.android.com/reference/kotlin/androidx/core/animation/Animator.AnimatorListener)`

Adds a listener to the set of listeners that are sent events through the life of an animation, such as start, repeat, and end.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#addPauseListener(androidx.core.animation.Animator.AnimatorPauseListener)(listener: https://developer.android.com/reference/kotlin/androidx/core/animation/Animator.AnimatorPauseListener)`

Adds a pause listener to this animator.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#addUpdateListener(androidx.core.animation.Animator.AnimatorUpdateListener)(listener: https://developer.android.com/reference/kotlin/androidx/core/animation/Animator.AnimatorUpdateListener)`

Adds a listener to the set of listeners that are sent update events through the life of an animation.
`https://developer.android.com/reference/kotlin/androidx/core/animation/Animator` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#clone()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#isPaused()()`

Returns whether this animator is currently in a paused state.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#removeAllListeners()()`

Removes all `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#addListener(androidx.core.animation.Animator.AnimatorListener)` and `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#addPauseListener(androidx.core.animation.Animator.AnimatorPauseListener)` from this object.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#removeAllUpdateListeners()()`

Removes all listeners from the set listening to frame updates for this animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#removeListener(androidx.core.animation.Animator.AnimatorListener)(listener: https://developer.android.com/reference/kotlin/androidx/core/animation/Animator.AnimatorListener)`

Removes a listener from the set listening to this animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#removePauseListener(androidx.core.animation.Animator.AnimatorPauseListener)(listener: https://developer.android.com/reference/kotlin/androidx/core/animation/Animator.AnimatorPauseListener)`

Removes a pause listener from the set listening to this animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#removeUpdateListener(androidx.core.animation.Animator.AnimatorUpdateListener)(listener: https://developer.android.com/reference/kotlin/androidx/core/animation/Animator.AnimatorUpdateListener)`

Removes a listener from the set listening to frame updates for this animation.
`abstract https://developer.android.com/reference/kotlin/androidx/core/animation/Animator` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#setDuration(long)(duration: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`

Sets the duration of the animation.
`abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#setStartDelay(long)(startDelay: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`

The amount of time, in milliseconds, to delay processing the animation after `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#start()` is called.
From [androidx.core.animation.ValueAnimator](https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator) `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#areAnimatorsEnabled()()`

Returns whether animators are currently enabled, system-wide.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#cancel()()`

Cancels the animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#end()()`

Ends the animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getAnimatedFraction()()`

Returns the current animation fraction, which is the elapsed/interpolated fraction used in the most recent frame update on the animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getAnimatedValue()()`

The most recent value calculated by this `ValueAnimator` when there is just one property being animated.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getAnimatedValue(java.lang.String)(propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

The most recent value calculated by this `ValueAnimator` for `propertyName`.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getCurrentPlayTime()()`

Gets the current position of the animation in time, which is equal to the current time minus the time that the animation started.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getDuration()()`

Gets the length of the animation.
`java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getFrameDelay()()`

The amount of time, in milliseconds, between each frame of the animation.
`https://developer.android.com/reference/kotlin/androidx/core/animation/Interpolator?` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getInterpolator()()`

Returns the timing interpolator that this ValueAnimator uses.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getRepeatCount()()`

Defines how many times the animation should repeat.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getRepeatMode()()`

Defines what this animation should do when it reaches the end.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getStartDelay()()`

The amount of time, in milliseconds, to delay starting the animation after `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#start()` is called.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getTotalDuration()()`

Gets the total duration of the animation, accounting for animation sequences, start delay, and repeating.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder!>` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getValues()()`

Returns the values that this ValueAnimator animates between.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#isRunning()()`

Returns whether this Animator is currently running (having been started and gone past any initial startDelay period and not yet ended).
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#isStarted()()`

Returns whether this Animator has been started and not yet ended.
`java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#ofArgb(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>)`

Constructs and returns a ValueAnimator that animates between color values.
`java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#ofFloat(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>)`

Constructs and returns a ValueAnimator that animates between float values.
`java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#ofInt(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>)`

Constructs and returns a ValueAnimator that animates between int values.
`java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#ofObject(androidx.core.animation.TypeEvaluator,java.lang.Object...)(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 ValueAnimator that animates between Object values.
`java-static https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#ofPropertyValuesHolder(androidx.core.animation.PropertyValuesHolder...)(values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder!>)`

Constructs and returns a ValueAnimator that animates between the values specified in the PropertyValuesHolder objects.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#pause()()`

Pauses a running animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#resume()()`

Resumes a paused animation, causing the animator to pick up where it left off when it was paused.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#reverse()()`

Plays the ValueAnimator in reverse.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setCurrentFraction(float)(fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Sets the position of the animation to the specified fraction.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setCurrentPlayTime(long)(playTime: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`

Sets the position of the animation to the specified point in time.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setEvaluator(androidx.core.animation.TypeEvaluator)(value: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeEvaluator)`

The type evaluator to be used when calculating the animated values of this animation.
`java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setFrameDelay(long)(frameDelay: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`

The amount of time, in milliseconds, between each frame of the animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setInterpolator(androidx.core.animation.Interpolator)(value: https://developer.android.com/reference/kotlin/androidx/core/animation/Interpolator?)`

The interpolator used in calculating the elapsed fraction of this animation.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setNameForTrace(java.lang.String)(animationName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`

Sets a name for the animation to show up in the systrace.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setRepeatCount(int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

Sets how many times the animation should be repeated.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setRepeatMode(int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

Defines what this animation should do when it reaches the end.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setStartDelay(long)(startDelay: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`

The amount of time, in milliseconds, to delay starting the animation after `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#start()` is called.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#setValues(androidx.core.animation.PropertyValuesHolder...)(values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder!>)`

Sets the values, per property, being animated between.

## Public constructors

### ObjectAnimator

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

```
ObjectAnimator()
```

Creates a new ObjectAnimator object. This default constructor is primarily for use internally; the other constructors which take parameters are more generally useful.

## Public functions

### clone

```
fun clone(): ObjectAnimator
```

### getNameForTrace

```
fun getNameForTrace(): String
```

Returns the name of this animator for debugging purposes.

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

If this animator was created with a `https://developer.android.com/reference/android/util/Property.html` object instead of the string name of a property, then this method will return the `https://developer.android.com/reference/android/util/Property.html#getName()` of that Property object instead. If this animator was created with one or more `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder` objects, then this method will return the `https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder#getPropertyName()` of that object (if there was just one) or a comma-separated list of all of the names (if there are more than one).

### getTarget

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

```
fun getTarget(): Any?
```

The target object whose property will be animated by this animation

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | The object being animated |

### ofArgb

```
java-static fun ofArgb(target: Any, propertyName: String, values: IntArray<Int>): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates between color values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. |
| `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>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofArgb

```
java-static fun <T> ofArgb(target: T, property: Property<T!, Int!>, values: IntArray<Int>): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates between color values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: T` | The object whose property is to be animated. |
| `property: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | 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>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofFloat

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

Constructs and returns an ObjectAnimator that animates between float values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. |
| `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>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofFloat

```
java-static fun <T> ofFloat(
    target: T,
    property: Property<T!, Float!>,
    values: FloatArray<Float>
): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates between float values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: T` | The object whose property is to be animated. |
| `property: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>` | 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>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofFloat

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

```
java-static fun ofFloat(
    target: Any,
    xPropertyName: String?,
    yPropertyName: String?,
    path: Path
): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. A `Path` animation moves in two dimensions, animating coordinates `(x, y)` together to follow the line. In this variation, the coordinates are floats that are set to separate properties designated by `xPropertyName` and `yPropertyName`.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose properties are to be animated. This object should have public methods on it called `setNameX()` and `setNameY`, where `nameX` and `nameY`are the value of the `xPropertyName` and `yPropertyName`parameters, respectively. |
| `xPropertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The name of the property for the x coordinate being animated. |
| `yPropertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | The name of the property for the y coordinate being animated. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The `Path` to animate values along. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. |

### ofFloat

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

```
java-static fun <T> ofFloat(
    target: T,
    xProperty: Property<T!, Float!>?,
    yProperty: Property<T!, Float!>?,
    path: Path
): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. A `Path` animation moves in two dimensions, animating coordinates `(x, y)` together to follow the line. In this variation, the coordinates are floats that are set to separate properties, `xProperty` and `yProperty`.

| Parameters |
|---|---|
| `target: T` | The object whose properties are to be animated. |
| `xProperty: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>?` | The property for the x coordinate being animated. |
| `yProperty: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html!>?` | The property for the y coordinate being animated. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The `Path` to animate values along. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. |

### ofInt

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

Constructs and returns an ObjectAnimator that animates between int values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. |
| `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>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofInt

```
java-static fun <T> ofInt(target: T, property: Property<T!, Int!>, values: IntArray<Int>): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates between int values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: T` | The object whose property is to be animated. |
| `property: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>` | 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>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofInt

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

```
java-static fun ofInt(target: Any, xPropertyName: String, yPropertyName: String, path: Path): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. A `Path` animation moves in two dimensions, animating coordinates `(x, y)` together to follow the line. In this variation, the coordinates are integers that are set to separate properties designated by `xPropertyName` and `yPropertyName`.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose properties are to be animated. This object should have public methods on it called `setNameX()` and `setNameY`, where `nameX` and `nameY`are the value of `xPropertyName` and `yPropertyName`parameters, respectively. |
| `xPropertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property for the x coordinate being animated. |
| `yPropertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property for the y coordinate being animated. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The `Path` to animate values along. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. |

### ofInt

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

```
java-static fun <T> ofInt(
    target: T,
    xProperty: Property<T!, Int!>?,
    yProperty: Property<T!, Int!>?,
    path: Path
): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. A `Path` animation moves in two dimensions, animating coordinates `(x, y)` together to follow the line. In this variation, the coordinates are integers that are set to separate properties, `xProperty` and `yProperty`.

| Parameters |
|---|---|
| `target: T` | The object whose properties are to be animated. |
| `xProperty: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>?` | The property for the x coordinate being animated. |
| `yProperty: https://developer.android.com/reference/android/util/Property.html<T!, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>?` | The property for the y coordinate being animated. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The `Path` to animate values along. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. |

### ofMultiFloat

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

```
java-static fun ofMultiFloat(target: Any, propertyName: String, path: Path): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates the target using a multi-float setter along the given `Path`. A `Path` animation moves in two dimensions, animating coordinates `(x, y)` together to follow the line. In this variation, the coordinates are float x and y coordinates used in the first and second parameter of the setter, respectively.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. |
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated or the name of the setter method. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The `Path` to animate values along. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. |

### ofMultiFloat

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

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

Constructs and returns an ObjectAnimator that animates over float values for a multiple parameters setter. Only public methods that take only float parameters are supported. Each `float[]` contains a complete set of parameters to the setter method. At least two `float[]` values must be provided, a start and end. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. |
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated or the name of the setter method. |
| `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>!>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofMultiFloat

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

Constructs and returns an ObjectAnimator that animates over values for a multiple float parameters setter. Only public methods that take only float parameters are supported.

At least two values must be provided, a start and end. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. |
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated or the name of the setter method. |
| `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 T objects into float parameters for the multi-value setter. |
| `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!>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofMultiInt

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

```
java-static fun ofMultiInt(target: Any, propertyName: String, path: Path): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates the target using a multi-int setter along the given `Path`. A `Path` animation moves in two dimensions, animating coordinates `(x, y)` together to follow the line. In this variation, the coordinates are integer x and y coordinates used in the first and second parameter of the setter, respectively.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. |
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated or the name of the setter method. |
| `path: https://developer.android.com/reference/android/graphics/Path.html` | The `Path` to animate values along. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. |

### ofMultiInt

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

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

Constructs and returns an ObjectAnimator that animates over int values for a multiple parameters setter. Only public methods that take only int parameters are supported. Each `int[]` contains a complete set of parameters to the setter method. At least two `int[]` values must be provided, a start and end. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. |
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated or the name of the setter method. |
| `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>!>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofMultiInt

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

Constructs and returns an ObjectAnimator that animates over values for a multiple int parameters setter. Only public methods that take only int parameters are supported.

At least two values must be provided, a start and end. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. |
| `propertyName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The name of the property being animated or the name of the setter method. |
| `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 T objects into int parameters for the multi-value setter. |
| `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!>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofObject

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

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

Constructs and returns an ObjectAnimator that animates a property along a `Path`. A `Path` animation moves in two dimensions, animating coordinates `(x, y)` together to follow the line. This variant animates the coordinates in a `PointF` to follow the `Path`. If the `Property` associated with `propertyName` uses a type other than `PointF`, `converter` can be used to change from `PointF` to the type associated with the `Property`.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. |
| `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` to animate values along. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. |

### ofObject

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

Constructs and returns an ObjectAnimator that animates between Object values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

**Note:** The 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 animator. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. |
| `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!>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofObject

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

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

Constructs and returns an ObjectAnimator that animates a property along a `Path`. A `Path` animation moves in two dimensions, animating coordinates `(x, y)` together to follow the line. This variant animates the coordinates in a `PointF` to follow the `Path`. If `property` uses a type other than `PointF`, `converter` can be used to change from `PointF` to the type associated with the `Property`.

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 |
|---|---|
| `target: T` | The object whose property is to be animated. |
| `property: https://developer.android.com/reference/android/util/Property.html<T!, 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` to animate values along. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. |

### ofObject

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

Constructs and returns an ObjectAnimator that animates between Object values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation).

**Note:** The 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 animator. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

| Parameters |
|---|---|
| `target: T` | The object whose property is to be animated. |
| `property: https://developer.android.com/reference/android/util/Property.html<T!, V!>` | The property being animated. |
| `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!>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofObject

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

Constructs and returns an ObjectAnimator that animates between Object values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#start()` is called for the first time. Two values imply starting and ending values. More than two values imply a starting value, values to animate through along the way, and an ending value (these values will be distributed evenly across the duration of the animation). This variant supplies a `TypeConverter` to convert from the 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 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 animator. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

| Parameters |
|---|---|
| `target: T` | The object whose property is to be animated. |
| `property: https://developer.android.com/reference/android/util/Property.html<T!, P!>` | The property being animated. |
| `converter: https://developer.android.com/reference/kotlin/androidx/core/animation/TypeConverter<V!, P!>` | Converts the animated object to the Property type. |
| `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!>` | A set of values that the animation will animate between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### ofPropertyValuesHolder

```
java-static fun ofPropertyValuesHolder(target: Any, values: Array<PropertyValuesHolder!>): ObjectAnimator
```

Constructs and returns an ObjectAnimator that animates between the sets of values specified in `PropertyValueHolder` objects. This variant should be used when animating several properties at once with the same ObjectAnimator, since PropertyValuesHolder allows you to associate a set of animation values with a property name.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html` | The object whose property is to be animated. Depending on how the PropertyValuesObjects were constructed, the target object should either have the `https://developer.android.com/reference/android/util/Property.html` objects used to construct the PropertyValuesHolder objects or (if the PropertyValuesHOlder objects were created with property names) the target object should have public methods on it called `setName()`, where `name` is the name of the property passed in as the `propertyName` parameter for each of the PropertyValuesHolder objects. |
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/core/animation/PropertyValuesHolder!>` | A set of PropertyValuesHolder objects whose values will be animated between over time. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. |

### setAutoCancel

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

```
fun setAutoCancel(cancel: Boolean): Unit
```

autoCancel controls whether an ObjectAnimator will be canceled automatically when any other ObjectAnimator with the same target and properties is started. Setting this flag may make it easier to run different animators on the same target object without having to keep track of whether there are conflicting animators that need to be manually canceled. Canceling animators must have the same exact set of target properties, in the same order.

| Parameters |
|---|---|
| `cancel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether future ObjectAnimators with the same target and properties as this ObjectAnimator will cause this ObjectAnimator to be canceled. |

### setDuration

```
fun setDuration(duration: Long): ObjectAnimator
```

Sets the length of the animation. The default duration is 300 milliseconds.

| Parameters |
|---|---|
| `duration: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The length of the animation, in milliseconds. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator` | ObjectAnimator The object called with setDuration(). This return value makes it easier to compose statements together that construct and then set the duration, as in `ObjectAnimator.ofInt(target, propertyName, 0, 10).setDuration(500).start()`. |

### setFloatValues

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

Sets float values that will be animated between. A single value implies that that value is the one being animated to. However, this is not typically useful in a ValueAnimator object because there is no way for the object to determine the starting value for the animation (unlike ObjectAnimator, which can derive that value from the target object and property being animated). Therefore, there should typically be two or more values.

If there are already multiple sets of values defined for this ValueAnimator via more than one PropertyValuesHolder object, this method will set the values for the first of those objects.

| 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>` | A set of values that the animation will animate between over time. |

### setIntValues

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

Sets int values that will be animated between. A single value implies that that value is the one being animated to. However, this is not typically useful in a ValueAnimator object because there is no way for the object to determine the starting value for the animation (unlike ObjectAnimator, which can derive that value from the target object and property being animated). Therefore, there should typically be two or more values.

If there are already multiple sets of values defined for this ValueAnimator via more than one PropertyValuesHolder object, this method will set the values for the first of those objects.

| 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>` | A set of values that the animation will animate between over time. |

### setObjectValues

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

Sets the values to animate between for this animation. A single value implies that that value is the one being animated to. However, this is not typically useful in a ValueAnimator object because there is no way for the object to determine the starting value for the animation (unlike ObjectAnimator, which can derive that value from the target object and property being animated). Therefore, there should typically be two or more values.

**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 animator. If the objects will be mutated externally after this method is called, callers should pass a copy of those objects instead.

If there are already multiple sets of values defined for this ValueAnimator via more than one PropertyValuesHolder object, this method will set the values for the first of those objects.

There should be a TypeEvaluator set on the ValueAnimator that knows how to interpolate between these value objects. ValueAnimator only knows how to interpolate between the primitive types specified in the other setValues() methods.

| Parameters |
|---|---|
| `values: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!>` | The set of values to 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. Property objects will take precedence over properties specified by the `https://developer.android.com/reference/kotlin/androidx/core/animation/ObjectAnimator#setPropertyName(java.lang.String)` method. Animations should be set up to use one or the other, not both.

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

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

For best performance of the mechanism that calls the setter function determined by the name of the property being animated, use `float` or `int` typed values, and make the setter function for those properties have a `void` return value. This will cause the code to take an optimized path for these constrained circumstances. Other property types and return types will work, but will have more overhead in processing the requests due to normal reflection mechanisms.

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.

If this ObjectAnimator has been set up to animate several properties together, using more than one PropertyValuesHolder objects, then setting the propertyName simply sets the propertyName in the first of those PropertyValuesHolder objects.

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

### setTarget

```
fun setTarget(target: Any?): Unit
```

Sets the target object whose property will be animated by this animation. Not all subclasses operate on target objects (for example, `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator`, but this method is on the superclass for the convenience of dealing generically with those subclasses that do handle targets.

**Note:** The target is stored as a weak reference internally to avoid leaking resources by having animators directly reference old targets. Therefore, you should ensure that animator targets always have a hard reference elsewhere.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` | The object being animated |

### setupEndValues

```
fun setupEndValues(): Unit
```

This method tells the object to use appropriate information to extract ending values for the animation. For example, a AnimatorSet object will pass this call to its child objects to tell them to set up the values. A ObjectAnimator object will use the information it has about its target object and PropertyValuesHolder objects to get the start values for its properties. A ValueAnimator object will ignore the request since it does not have enough information (such as a target object) to gather these values.

### setupStartValues

```
fun setupStartValues(): Unit
```

This method tells the object to use appropriate information to extract starting values for the animation. For example, a AnimatorSet object will pass this call to its child objects to tell them to set up the values. A ObjectAnimator object will use the information it has about its target object and PropertyValuesHolder objects to get the start values for its properties. A ValueAnimator object will ignore the request since it does not have enough information (such as a target object) to gather these values.

### start

```
fun start(): Unit
```

Starts this animation. If the animation has a nonzero startDelay, the animation will start running after that delay elapses. A non-delayed animation will have its initial value(s) set immediately, followed by calls to `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator.AnimatorListener#onAnimationStart(androidx.core.animation.Animator)` for any listeners of this animator.

The animation started by calling this method will be run on the thread that called this method. This thread should have a Looper on it (a runtime exception will be thrown if this is not the case). Also, if the animation will animate properties of objects in the view hierarchy, then the calling thread should be the UI thread for that view hierarchy.

### toString

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