Skip to content

Most visited

Recently visited

navigation
Added in API level 16

TimeAnimator.TimeListener

public static interface TimeAnimator.TimeListener

android.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. 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 currentPlayTime prior to starting.

Summary

Public methods

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

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
void onTimeUpdate (TimeAnimator animation, 
                long totalTime, 
                long deltaTime)

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

Parameters
animation TimeAnimator: The animator sending out the notification.
totalTime long: The total time elapsed since the animator started, in milliseconds.
deltaTime long: The time elapsed since the previous frame, in milliseconds.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.