Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

Transition.TransitionListener

android.transition.Transition.TransitionListener

Class Overview

A transition listener receives notifications from a transition. Notifications indicate transition lifecycle events.

Summary

Public Methods
abstract void onTransitionCancel ( Transition transition)
Notification about the cancellation of the transition.
abstract void onTransitionEnd ( Transition transition)
Notification about the end of the transition.
abstract void onTransitionPause ( Transition transition)
Notification when a transition is paused.
abstract void onTransitionResume ( Transition transition)
Notification when a transition is resumed.
abstract void onTransitionStart ( Transition transition)
Notification about the start of the transition.

Public Methods

public abstract void onTransitionCancel ( Transition transition)

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 The transition which was canceled.

public abstract void onTransitionEnd ( Transition transition)

Notification about the end of the transition. Canceled transitions will always notify listeners of both the cancellation and end events. That is, onTransitionEnd(Transition) is always called, regardless of whether the transition was canceled or played through to completion.

Parameters
transition The transition which reached its end.

public abstract void onTransitionPause ( Transition transition)

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 The transition which was paused.

public abstract void onTransitionResume ( Transition transition)

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(Transition) .

Parameters
transition The transition which was resumed.

public abstract void onTransitionStart ( Transition transition)

Notification about the start of the transition.

Parameters
transition The started transition.