Transition.TransitionListener
interface Transition.TransitionListener
TransitionListenerAdapter |
This adapter class provides empty implementations of the methods from |
A transition listener receives notifications from a transition. Notifications indicate transition lifecycle events.
Summary
Public functions |
|
|---|---|
Unit |
onTransitionCancel(transition: Transition)Notification about the cancellation of the transition. |
Unit |
onTransitionEnd(transition: Transition)Notification about the end of the transition. |
Unit |
onTransitionEnd(transition: Transition, isReverse: Boolean)Notification about the end of the transition. |
Unit |
onTransitionPause(transition: Transition)Notification when a transition is paused. |
Unit |
onTransitionResume(transition: Transition)Notification when a transition is resumed. |
Unit |
onTransitionStart(transition: Transition)Notification about the start of the transition. |
Unit |
onTransitionStart(transition: Transition, isReverse: Boolean)Notification about the start of the transition. |
Public functions
onTransitionCancel
fun onTransitionCancel(transition: Transition): Unit
Notification about the cancellation of the transition. Note that cancel may be called by a parent TransitionSet on a child transition which has not yet started. This allows the child transition to restore state on target objects which was set at createAnimator() time.
| Parameters | |
|---|---|
transition: Transition |
The transition which was canceled. |
onTransitionEnd
fun onTransitionEnd(transition: Transition): Unit
Notification about the end of the transition. Canceled transitions will always notify listeners of both the cancellation and end events. That is, onTransitionEnd is always called, regardless of whether the transition was canceled or played through to completion.
| Parameters | |
|---|---|
transition: Transition |
The transition which reached its end. |
onTransitionEnd
fun onTransitionEnd(transition: Transition, isReverse: Boolean): Unit
Notification about the end of the transition. Canceled transitions will always notify listeners of both the cancellation and end events. That is, onTransitionEnd is always called, regardless of whether the transition was canceled or played through to completion. Canceled transitions will have isReverse set to false.
| Parameters | |
|---|---|
transition: Transition |
The transition which reached its end. |
isReverse: Boolean |
|
onTransitionPause
fun onTransitionPause(transition: Transition): Unit
Notification when a transition is paused. Note that createAnimator() may be called by a parent TransitionSet on a child transition which has not yet started. This allows the child transition to restore state on target objects which was set at createAnimator() time.
| Parameters | |
|---|---|
transition: Transition |
The transition which was paused. |
onTransitionResume
fun onTransitionResume(transition: Transition): Unit
Notification when a transition is resumed. Note that resume() may be called by a parent TransitionSet on a child transition which has not yet started. This allows the child transition to restore state which may have changed in an earlier call to onTransitionPause.
| Parameters | |
|---|---|
transition: Transition |
The transition which was resumed. |
onTransitionStart
fun onTransitionStart(transition: Transition): Unit
Notification about the start of the transition.
| Parameters | |
|---|---|
transition: Transition |
The started transition. |
onTransitionStart
fun onTransitionStart(transition: Transition, isReverse: Boolean): Unit
Notification about the start of the transition.
| Parameters | |
|---|---|
transition: Transition |
The started transition. |
isReverse: Boolean |
|