public class TaskStackAnimationHelper extends Object
TaskView
s in a TaskStackView
,
but not the contents of the TaskView
s.Modifier and Type | Class and Description |
---|---|
static interface |
TaskStackAnimationHelper.Callbacks
Callbacks from the helper to coordinate view-content animations with view animations.
|
Modifier and Type | Field and Description |
---|---|
static int |
ENTER_FROM_HOME_TRANSLATION_DURATION |
static int |
EXIT_TO_HOME_TRANSLATION_DURATION |
Constructor and Description |
---|
TaskStackAnimationHelper(Context context,
TaskStackView stackView) |
Modifier and Type | Method and Description |
---|---|
void |
prepareForEnterAnimation()
Prepares the stack views and puts them in their initial animation state while visible, before
the in-app enter animations start (after the window-transition completes).
|
void |
startDeleteAllTasksAnimation(List<TaskView> taskViews,
ReferenceCountedTrigger postAnimationTrigger)
Starts the delete animation for all the
TaskView s. |
void |
startDeleteTaskAnimation(TaskView deleteTaskView,
ReferenceCountedTrigger postAnimationTrigger)
Starts the delete animation for the specified
TaskView . |
void |
startEnterAnimation(ReferenceCountedTrigger postAnimationTrigger)
Starts the in-app enter animation, which animates the
TaskView s to their final places
depending on how Recents was triggered. |
void |
startExitToHomeAnimation(boolean animated,
ReferenceCountedTrigger postAnimationTrigger)
Starts an in-app animation to hide all the task views so that we can transition back home.
|
void |
startLaunchTaskAnimation(TaskView launchingTaskView,
boolean screenPinningRequested,
ReferenceCountedTrigger postAnimationTrigger)
Starts the animation for the launching task view, hiding any tasks that might occlude the
window transition for the launching task.
|
void |
startNewStackScrollAnimation(TaskStack newStack,
ReferenceCountedTrigger animationTrigger)
Starts the animation to go to the initial stack layout with a task focused.
|
boolean |
startScrollToFocusedTaskAnimation(Task newFocusedTask,
boolean requestViewFocus)
Starts the animation to focus the next
TaskView when paging through recents. |
public static final int ENTER_FROM_HOME_TRANSLATION_DURATION
public static final int EXIT_TO_HOME_TRANSLATION_DURATION
public TaskStackAnimationHelper(Context context, TaskStackView stackView)
public void prepareForEnterAnimation()
public void startEnterAnimation(ReferenceCountedTrigger postAnimationTrigger)
TaskView
s to their final places
depending on how Recents was triggered.public void startExitToHomeAnimation(boolean animated, ReferenceCountedTrigger postAnimationTrigger)
public void startLaunchTaskAnimation(TaskView launchingTaskView, boolean screenPinningRequested, ReferenceCountedTrigger postAnimationTrigger)
public void startDeleteTaskAnimation(TaskView deleteTaskView, ReferenceCountedTrigger postAnimationTrigger)
TaskView
.public void startDeleteAllTasksAnimation(List<TaskView> taskViews, ReferenceCountedTrigger postAnimationTrigger)
TaskView
s.public boolean startScrollToFocusedTaskAnimation(Task newFocusedTask, boolean requestViewFocus)
TaskView
when paging through recents.public void startNewStackScrollAnimation(TaskStack newStack, ReferenceCountedTrigger animationTrigger)