Stay organized with collections
Save and categorize content based on your preferences.
SimpleAnimatorListener
public
class
SimpleAnimatorListener
extends Object
implements
Animator.AnimatorListener
This class is deprecated.
use androidx.animation.AnimatorListenerAdapter
provided by the Jetpack
Animation library instead.
Convenience class for listening for Animator events that implements the AnimatorListener
interface and allows extending only methods that are necessary.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
|
Public constructors
SimpleAnimatorListener
public SimpleAnimatorListener ()
Public methods
onAnimationCancel
public void onAnimationCancel (Animator animator)
Parameters |
animator |
Animator |
onAnimationComplete
public void onAnimationComplete (Animator animator)
Called when the animation finishes. Not called if the animation was canceled.
Parameters |
animator |
Animator |
onAnimationEnd
public void onAnimationEnd (Animator animator)
Parameters |
animator |
Animator |
onAnimationRepeat
public void onAnimationRepeat (Animator animator)
Parameters |
animator |
Animator |
onAnimationStart
public void onAnimationStart (Animator animator)
Parameters |
animator |
Animator |
wasCanceled
public boolean wasCanceled ()
Provides information if the animation was cancelled.
Returns |
boolean |
True if animation was cancelled.
|
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,["# SimpleAnimatorListener\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nSimpleAnimatorListener\n======================\n\n\n`\npublic\n\n\nclass\nSimpleAnimatorListener\n`\n\n\n`\n\nextends `[Object](http://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\nimplements\n\n`[Animator.AnimatorListener](http://developer.android.com/reference/android/animation/Animator.AnimatorListener.html)`\n\n\n`\n\n|---|------------------------------------------------------|\n| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | android.support.wearable.view.SimpleAnimatorListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This class is deprecated.** \n\nuse `androidx.animation.AnimatorListenerAdapter` provided by the Jetpack\nAnimation library instead.\n\nConvenience class for listening for Animator events that implements the AnimatorListener\ninterface and allows extending only methods that are necessary.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[SimpleAnimatorListener](../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html#SimpleAnimatorListener())`() ` |\n\n| ### Public methods ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[onAnimationCancel](../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationCancel(android.animation.Animator))`(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` animator) ` |\n| ` void` | ` `[onAnimationComplete](../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationComplete(android.animation.Animator))`(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` animator) ` Called when the animation finishes. |\n| ` void` | ` `[onAnimationEnd](../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationEnd(android.animation.Animator))`(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` animator) ` |\n| ` void` | ` `[onAnimationRepeat](../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationRepeat(android.animation.Animator))`(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` animator) ` |\n| ` void` | ` `[onAnimationStart](../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html#onAnimationStart(android.animation.Animator))`(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` animator) ` |\n| ` boolean` | ` `[wasCanceled](../../../../../reference/android/support/wearable/view/SimpleAnimatorListener.html#wasCanceled())`() ` Provides information if the animation was cancelled. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html) | ` clone() ` | | ` boolean` | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void` | ` finalize() ` | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` `[String](http://developer.android.com/reference/java/lang/String.html) | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n| From interface ` `[android.animation.Animator.AnimatorListener](http://developer.android.com/reference/android/animation/Animator.AnimatorListener.html)` ` |------------------|-------------------------------------------------------------------------------------------------------------------------------| | ` abstract void` | ` onAnimationCancel(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` arg0) ` | | ` abstract void` | ` onAnimationEnd(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` arg0) ` | | ` default void` | ` onAnimationEnd(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` arg0, boolean arg1) ` | | ` abstract void` | ` onAnimationRepeat(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` arg0) ` | | ` abstract void` | ` onAnimationStart(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` arg0) ` | | ` default void` | ` onAnimationStart(`[Animator](http://developer.android.com/reference/android/animation/Animator.html)` arg0, boolean arg1) ` | ||\n\nPublic constructors\n-------------------\n\n### SimpleAnimatorListener\n\n```\npublic SimpleAnimatorListener ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### onAnimationCancel\n\n```\npublic void onAnimationCancel (Animator animator)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-------------------|\n| `animator` | `Animator` \u003cbr /\u003e |\n\n### onAnimationComplete\n\n```\npublic void onAnimationComplete (Animator animator)\n```\n\nCalled when the animation finishes. Not called if the animation was canceled.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-------------------|\n| `animator` | `Animator` \u003cbr /\u003e |\n\n### onAnimationEnd\n\n```\npublic void onAnimationEnd (Animator animator)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-------------------|\n| `animator` | `Animator` \u003cbr /\u003e |\n\n### onAnimationRepeat\n\n```\npublic void onAnimationRepeat (Animator animator)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-------------------|\n| `animator` | `Animator` \u003cbr /\u003e |\n\n### onAnimationStart\n\n```\npublic void onAnimationStart (Animator animator)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-------------------|\n| `animator` | `Animator` \u003cbr /\u003e |\n\n### wasCanceled\n\n```\npublic boolean wasCanceled ()\n```\n\nProvides information if the animation was cancelled.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|-----------------------------------------|\n| `boolean` | True if animation was cancelled. \u003cbr /\u003e |"]]