Stay organized with collections
Save and categorize content based on your preferences.
Animator.AnimatorPauseListener
public
static
interface
Animator.AnimatorPauseListener
android.animation.Animator.AnimatorPauseListener
|
Known indirect subclasses
|
A pause listener receives notifications from an animation when the
animation is paused
or resumed
.
Summary
Public methods
onAnimationPause
public abstract void onAnimationPause (Animator animation)
Notifies that the animation was paused.
Parameters |
animation |
Animator : The animaton being paused.
This value cannot be null . |
onAnimationResume
public abstract void onAnimationResume (Animator animation)
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.
[[["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,["# Animator.AnimatorPauseListener\n\nAdded in [API level 19](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nAnimator.AnimatorPauseListener\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/animation/Animator.AnimatorPauseListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAnimator.AnimatorPauseListener\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------------|\n| android.animation.Animator.AnimatorPauseListener |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [AnimatorListenerAdapter](/reference/android/animation/AnimatorListenerAdapter) |---------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AnimatorListenerAdapter](/reference/android/animation/AnimatorListenerAdapter) | This adapter class provides empty implementations of the methods from [Animator.AnimatorListener](/reference/android/animation/Animator.AnimatorListener). | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA pause listener receives notifications from an animation when the\nanimation is [paused](/reference/android/animation/Animator#pause()) or [resumed](/reference/android/animation/Animator#resume()). \n**See also:**\n\n- [Animator.addPauseListener(AnimatorPauseListener)](/reference/android/animation/Animator#addPauseListener(android.animation.Animator.AnimatorPauseListener))\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onAnimationPause](/reference/android/animation/Animator.AnimatorPauseListener#onAnimationPause(android.animation.Animator))`(`[Animator](/reference/android/animation/Animator)` animation) ` \u003cbr /\u003e Notifies that the animation was paused. |\n| ` abstract void` | ` `[onAnimationResume](/reference/android/animation/Animator.AnimatorPauseListener#onAnimationResume(android.animation.Animator))`(`[Animator](/reference/android/animation/Animator)` animation) ` \u003cbr /\u003e Notifies that the animation was resumed, after being previously paused. |\n\nPublic methods\n--------------\n\n### onAnimationPause\n\nAdded in [API level 19](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onAnimationPause (Animator animation)\n```\n\n\u003cbr /\u003e\n\nNotifies that the animation was paused.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|----------------------------------------------------------------------------|\n| `animation` | `Animator`: The animaton being paused. This value cannot be `null`. \u003cbr /\u003e |\n\n**See also:**\n\n- [Animator.pause()](/reference/android/animation/Animator#pause()) \n\n### onAnimationResume\n\nAdded in [API level 19](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onAnimationResume (Animator animation)\n```\n\n\u003cbr /\u003e\n\nNotifies that the animation was resumed, after being\npreviously paused.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|------------------------------------------------------------------------------|\n| `animation` | `Animator`: The animation being resumed. This value cannot be `null`. \u003cbr /\u003e |\n\n**See also:**\n\n- [Animator.resume()](/reference/android/animation/Animator#resume())"]]