public class AppTransition extends Object implements DumpUtils.Dump
Modifier and Type | Field and Description |
---|---|
static int |
TRANSIT_ACTIVITY_CLOSE
The window in the top-most activity is being closed to reveal the
previous activity in the same task.
|
static int |
TRANSIT_ACTIVITY_OPEN
A window in a new activity is being opened on top of an existing one in the same task.
|
static int |
TRANSIT_ACTIVITY_RELAUNCH
An activity is being relaunched (e.g. due to configuration change).
|
static int |
TRANSIT_DOCK_TASK_FROM_RECENTS
A task is being docked from recents.
|
static int |
TRANSIT_NONE
No animation for transition.
|
static int |
TRANSIT_TASK_CLOSE
A window in the top-most activity is being closed to reveal the
previous activity in a different task.
|
static int |
TRANSIT_TASK_IN_PLACE
A window in a task is being animated in-place.
|
static int |
TRANSIT_TASK_OPEN
A window in a new task is being opened on top of an existing one
in another activity's task.
|
static int |
TRANSIT_TASK_OPEN_BEHIND
A window in a new task is being opened behind an existing one in another activity's task.
|
static int |
TRANSIT_TASK_TO_BACK
A window in an existing task is being put below all other tasks.
|
static int |
TRANSIT_TASK_TO_FRONT
A window in an existing task is being displayed on top of an existing one
in another activity's task.
|
static int |
TRANSIT_UNSET
Not set up for a transition.
|
static int |
TRANSIT_WALLPAPER_CLOSE
A window in a new activity that doesn't have a wallpaper is being opened on top of one that
does, effectively closing the wallpaper.
|
static int |
TRANSIT_WALLPAPER_INTRA_CLOSE
The window in the top-most activity is being closed to reveal the previous activity, and
both are on top of the wallpaper.
|
static int |
TRANSIT_WALLPAPER_INTRA_OPEN
A window in a new activity is being opened on top of an existing one, and both are on top
of the wallpaper.
|
static int |
TRANSIT_WALLPAPER_OPEN
A window in a new activity that does have a wallpaper is being opened on one that didn't,
effectively opening the wallpaper.
|
Modifier and Type | Method and Description |
---|---|
static String |
appTransitionToString(int transition)
Returns the human readable name of a window transition.
|
void |
dump(PrintWriter pw,
String prefix) |
void |
notifyAppTransitionFinishedLocked(IBinder token) |
void |
overridePendingAppTransitionMultiThumb(AppTransitionAnimationSpec[] specs,
IRemoteCallback onAnimationStartedCallback,
IRemoteCallback onAnimationFinishedCallback,
boolean scaleUp) |
void |
setCurrentUser(int newUserId) |
String |
toString()
Returns a string representation of the object.
|
public static final int TRANSIT_UNSET
public static final int TRANSIT_NONE
public static final int TRANSIT_ACTIVITY_OPEN
public static final int TRANSIT_ACTIVITY_CLOSE
public static final int TRANSIT_TASK_OPEN
public static final int TRANSIT_TASK_CLOSE
public static final int TRANSIT_TASK_TO_FRONT
public static final int TRANSIT_TASK_TO_BACK
public static final int TRANSIT_WALLPAPER_CLOSE
public static final int TRANSIT_WALLPAPER_OPEN
public static final int TRANSIT_WALLPAPER_INTRA_OPEN
public static final int TRANSIT_WALLPAPER_INTRA_CLOSE
public static final int TRANSIT_TASK_OPEN_BEHIND
public static final int TRANSIT_TASK_IN_PLACE
public static final int TRANSIT_ACTIVITY_RELAUNCH
public static final int TRANSIT_DOCK_TASK_FROM_RECENTS
public void notifyAppTransitionFinishedLocked(IBinder token)
public void overridePendingAppTransitionMultiThumb(AppTransitionAnimationSpec[] specs, IRemoteCallback onAnimationStartedCallback, IRemoteCallback onAnimationFinishedCallback, boolean scaleUp)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public static String appTransitionToString(int transition)
transition
- The window transition.public void dump(PrintWriter pw, String prefix)
dump
in interface DumpUtils.Dump
public void setCurrentUser(int newUserId)