# TimeAnimator

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

*** ** * ** ***

<br />

```
class TimeAnimator : 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.TimeAnimator](https://developer.android.com/reference/kotlin/androidx/core/animation/TimeAnimator) |

*** ** * ** ***

This class provides a simple callback mechanism to listeners that is synchronized with all other animators in the system. There is no duration, interpolation, or object value-setting with this Animator. Instead, it is simply started, after which it proceeds to send out events on every animation frame to its TimeListener (if set), with information about this animator, the total elapsed time, and the elapsed time since the previous animation frame.

## Summary

| ### Nested types |
|---|
| `interface https://developer.android.com/reference/kotlin/androidx/core/animation/TimeAnimator.TimeListener` Implementors of this interface can set themselves as update listeners to a `TimeAnimator` instance to receive callbacks on every animation frame to receive the total time since the animator started and the delta time since the last frame. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/animation/TimeAnimator#TimeAnimator()()` |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/TimeAnimator#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/TimeAnimator#setTimeListener(androidx.core.animation.TimeAnimator.TimeListener)(listener: https://developer.android.com/reference/kotlin/androidx/core/animation/TimeAnimator.TimeListener?)` Sets a listener that is sent update events throughout the life of an animation. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/animation/TimeAnimator#start()()` Starts this animation. |

### 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.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/Animator#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/Animator#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/Animator#setupStartValues()()`

This method tells the object to use appropriate information to extract starting values for the animation.
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://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#clone()()` `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/-string/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#getNameForTrace()()`

Returns the name of this animator for debugging purposes.
`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://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#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/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.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#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.
`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#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/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#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/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.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/kotlin/androidx/core/animation/ValueAnimator#toString()()`

## Public constructors

### TimeAnimator

Added in 1.0.0

```
TimeAnimator()
```

## Public functions

### setCurrentPlayTime

```
fun setCurrentPlayTime(playTime: Long): Unit
```

Sets the position of the animation to the specified point in time. This time should be between 0 and the total duration of the animation, including any repetition. If the animation has not yet been started, then it will not advance forward after it is set to this time; it will simply set the time to this value and perform any appropriate actions based on that time. If the animation is already running, then setCurrentPlayTime() will set the current playing time to this value and continue playing from that point.

| Parameters |
|---|---|
| `playTime: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The time, in milliseconds, to which the animation is advanced or rewound. |

### setTimeListener

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

```
fun setTimeListener(listener: TimeAnimator.TimeListener?): Unit
```

Sets a listener that is sent update events throughout the life of an animation.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/core/animation/TimeAnimator.TimeListener?` | the listener to be set. |

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