Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# TimeAnimator.TimeListener

*** ** * ** ***

` public static interface TimeAnimator.TimeListener `   
` `

|---|
| android.animation.TimeAnimator.TimeListener |

<br />

*** ** * ** ***

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. The first time the listener is called, deltaTime will be zero. The same is true for totalTime, unless the animator was set to a specific `https://developer.android.com/reference/android/animation/ValueAnimator#setCurrentPlayTime(long)` prior to starting.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/animation/TimeAnimator.TimeListener#onTimeUpdate(android.animation.TimeAnimator,%20long,%20long)(https://developer.android.com/reference/android/animation/TimeAnimator animation, long totalTime, long deltaTime) ` <br /> Notifies listeners of the occurrence of another frame of the animation, along with information about the elapsed time. |

## Public methods

### onTimeUpdate

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onTimeUpdate (TimeAnimator animation, 
                long totalTime, 
                long deltaTime)
```

<br />

Notifies listeners of the occurrence of another frame of the animation, along with information about the elapsed time.

<br />

<br />

| Parameters ||
|---|---|
| `animation` | `TimeAnimator`: The animator sending out the notification. <br /> |
| `totalTime` | `long`: The total time elapsed since the animator started, in milliseconds. <br /> |
| `deltaTime` | `long`: The time elapsed since the previous frame, in milliseconds. <br /> |