Stay organized with collections
Save and categorize content based on your preferences.
AnimatorUpdateListener
interface AnimatorUpdateListener
Implementors of this interface can add themselves as update listeners to an ValueAnimator
instance to receive callbacks on every animation frame, after the current frame's values have been calculated for that ValueAnimator
.
Summary
Public methods |
abstract Unit |
Notifies the occurrence of another frame of the animation.
|
Public methods
onAnimationUpdate
abstract fun onAnimationUpdate(animation: ValueAnimator): Unit
Notifies the occurrence of another frame of the animation.
Parameters |
animation |
ValueAnimator: The animation which was repeated. This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ValueAnimator.AnimatorUpdateListener\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAnimatorUpdateListener\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/animation/ValueAnimator.AnimatorUpdateListener \"View this page in Java\") \n\n```\ninterface AnimatorUpdateListener\n```\n\n|-------------------------------------------------------------|\n| [android.animation.ValueAnimator.AnimatorUpdateListener](#) |\n\nImplementors of this interface can add themselves as update listeners to an `ValueAnimator` instance to receive callbacks on every animation frame, after the current frame's values have been calculated for that `ValueAnimator`.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onAnimationUpdate](#onAnimationUpdate(android.animation.ValueAnimator))`(`animation:` `[ValueAnimator](/reference/kotlin/android/animation/ValueAnimator)`)` Notifies the occurrence of another frame of the animation. |\n\nPublic methods\n--------------\n\n### onAnimationUpdate\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onAnimationUpdate(animation: ValueAnimator): Unit\n```\n\nNotifies the occurrence of another frame of the animation.\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------------------------------------------------------------|\n| `animation` | [ValueAnimator](/reference/kotlin/android/animation/ValueAnimator): The animation which was repeated. This value cannot be `null`. |"]]