Register now for Android Dev Summit 2019!

ViewPropertyAnimatorListenerAdapter

open class ViewPropertyAnimatorListenerAdapter : ViewPropertyAnimatorListener
kotlin.Any
   ↳ androidx.core.view.ViewPropertyAnimatorListenerAdapter

This adapter class provides empty implementations of the methods from ViewPropertyAnimatorListener. Any custom listener that cares only about a subset of the methods of this listener can simply subclass this adapter class instead of implementing the interface directly.

Summary

Public constructors

This adapter class provides empty implementations of the methods from ViewPropertyAnimatorListener.

Public methods

open Unit

Notifies the cancellation of the animation.

open Unit

Notifies the end of the animation.

open Unit

Notifies the start of the animation.

Public constructors

<init>

ViewPropertyAnimatorListenerAdapter()

This adapter class provides empty implementations of the methods from ViewPropertyAnimatorListener. Any custom listener that cares only about a subset of the methods of this listener can simply subclass this adapter class instead of implementing the interface directly.

Public methods

onAnimationCancel

open fun onAnimationCancel(view: View!): Unit

Notifies the cancellation of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

Parameters
view View!: The view associated with the ViewPropertyAnimator

onAnimationEnd

open fun onAnimationEnd(view: View!): Unit

Notifies the end of the animation. This callback is not invoked for animations with repeat count set to INFINITE.

Parameters
view View!: The view associated with the ViewPropertyAnimator

onAnimationStart

open fun onAnimationStart(view: View!): Unit

Notifies the start of the animation.

Parameters
view View!: The view associated with the ViewPropertyAnimator