androidx.core.animation
Extension functions summary
For android.animation.Animator | |
AnimatorListener |
Animator.addListener(crossinline onEnd: (animator: Animator) -> Unit = {}, crossinline onStart: (animator: Animator) -> Unit = {}, crossinline onCancel: (animator: Animator) -> Unit = {}, crossinline onRepeat: (animator: Animator) -> Unit = {}) Add a listener to this Animator using the provided actions. |
AnimatorPauseListener |
Animator.addPauseListener(crossinline onResume: (animator: Animator) -> Unit = {}, crossinline onPause: (animator: Animator) -> Unit = {}) Add a pause and resume listener to this Animator using the provided actions. |
AnimatorListener |
Animator.doOnCancel(crossinline action: (animator: Animator) -> Unit) Add an action which will be invoked when the animation has been cancelled. |
AnimatorListener |
Add an action which will be invoked when the animation has ended. |
AnimatorPauseListener |
Add an action which will be invoked when the animation has been paused. |
AnimatorListener |
Animator.doOnRepeat(crossinline action: (animator: Animator) -> Unit) Add an action which will be invoked when the animation has repeated. |
AnimatorPauseListener |
Animator.doOnResume(crossinline action: (animator: Animator) -> Unit) Add an action which will be invoked when the animation has resumed after a pause. |
AnimatorListener |
Add an action which will be invoked when the animation has started. |
Extension functions
addListener
inline fun Animator.addListener(crossinline onEnd: (animator: Animator) -> Unit = {}, crossinline onStart: (animator: Animator) -> Unit = {}, crossinline onCancel: (animator: Animator) -> Unit = {}, crossinline onRepeat: (animator: Animator) -> Unit = {}): AnimatorListener
Add a listener to this Animator using the provided actions.
Return | |
---|---|
the Animator.AnimatorListener added to the Animator |
addPauseListener
inline fun Animator.addPauseListener(crossinline onResume: (animator: Animator) -> Unit = {}, crossinline onPause: (animator: Animator) -> Unit = {}): AnimatorPauseListener
Add a pause and resume listener to this Animator using the provided actions.
Return | |
---|---|
the Animator.AnimatorPauseListener added to the Animator |
doOnCancel
inline fun Animator.doOnCancel(crossinline action: (animator: Animator) -> Unit): AnimatorListener
Add an action which will be invoked when the animation has been cancelled.
Return | |
---|---|
the Animator.AnimatorListener added to the Animator |
See Also
doOnEnd
inline fun Animator.doOnEnd(crossinline action: (animator: Animator) -> Unit): AnimatorListener
Add an action which will be invoked when the animation has ended.
Return | |
---|---|
the Animator.AnimatorListener added to the Animator |
See Also
doOnPause
inline fun Animator.doOnPause(crossinline action: (animator: Animator) -> Unit): AnimatorPauseListener
Add an action which will be invoked when the animation has been paused.
Return | |
---|---|
the Animator.AnimatorPauseListener added to the Animator |
See Also
doOnRepeat
inline fun Animator.doOnRepeat(crossinline action: (animator: Animator) -> Unit): AnimatorListener
Add an action which will be invoked when the animation has repeated.
Return | |
---|---|
the Animator.AnimatorListener added to the Animator |
doOnResume
inline fun Animator.doOnResume(crossinline action: (animator: Animator) -> Unit): AnimatorPauseListener
Add an action which will be invoked when the animation has resumed after a pause.
Return | |
---|---|
the Animator.AnimatorPauseListener added to the Animator |
See Also
doOnStart
inline fun Animator.doOnStart(crossinline action: (animator: Animator) -> Unit): AnimatorListener
Add an action which will be invoked when the animation has started.
Return | |
---|---|
the Animator.AnimatorListener added to the Animator |
See Also