Stay organized with collections
Save and categorize content based on your preferences.
AnimatorPauseListener
interface AnimatorPauseListener
A pause listener receives notifications from an animation when the animation is paused
or resumed
.
Summary
Public methods |
abstract Unit |
Notifies that the animation was paused.
|
abstract Unit |
Notifies that the animation was resumed, after being previously paused.
|
Public methods
onAnimationPause
abstract fun onAnimationPause(animation: Animator): Unit
Notifies that the animation was paused.
Parameters |
animation |
Animator: The animaton being paused. This value cannot be null . |
onAnimationResume
abstract fun onAnimationResume(animation: Animator): Unit
Notifies that the animation was resumed, after being previously paused.
Parameters |
animation |
Animator: The animation being resumed. 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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Animator.AnimatorPauseListener\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAnimatorPauseListener\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/animation/Animator.AnimatorPauseListener \"View this page in Java\") \n\n```\ninterface AnimatorPauseListener\n```\n\n|-------------------------------------------------------|\n| [android.animation.Animator.AnimatorPauseListener](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [AnimatorListenerAdapter](/reference/kotlin/android/animation/AnimatorListenerAdapter) |----------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AnimatorListenerAdapter](/reference/kotlin/android/animation/AnimatorListenerAdapter) | This adapter class provides empty implementations of the methods from [android.animation.Animator.AnimatorListener](/reference/kotlin/android/animation/Animator.AnimatorListener). | |\n\nA pause listener receives notifications from an animation when the animation is [paused](/reference/kotlin/android/animation/Animator#pause()) or [resumed](/reference/kotlin/android/animation/Animator#resume()).\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onAnimationPause](#onAnimationPause(android.animation.Animator))`(`animation:` `[Animator](/reference/kotlin/android/animation/Animator)`)` Notifies that the animation was paused. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onAnimationResume](#onAnimationResume(android.animation.Animator))`(`animation:` `[Animator](/reference/kotlin/android/animation/Animator)`)` Notifies that the animation was resumed, after being previously paused. |\n\nPublic methods\n--------------\n\n### onAnimationPause\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onAnimationPause(animation: Animator): Unit\n```\n\nNotifies that the animation was paused.\n\n| Parameters ||\n|-------------|-------------------------------------------------------------------------------------------------------------------|\n| `animation` | [Animator](/reference/kotlin/android/animation/Animator): The animaton being paused. This value cannot be `null`. |\n\n**See Also**\n\n- [#pause()](/reference/kotlin/android/animation/Animator#pause()) \n\n### onAnimationResume\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onAnimationResume(animation: Animator): Unit\n```\n\nNotifies that the animation was resumed, after being previously paused.\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------|\n| `animation` | [Animator](/reference/kotlin/android/animation/Animator): The animation being resumed. This value cannot be `null`. |\n\n**See Also**\n\n- [#resume()](/reference/kotlin/android/animation/Animator#resume())"]]