public class RecentsTransitionHelper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RecentsTransitionHelper.AnimationSpecComposer |
Constructor and Description |
---|
RecentsTransitionHelper(Context context) |
Modifier and Type | Method and Description |
---|---|
List<AppTransitionAnimationSpec> |
composeDockAnimationSpec(TaskView taskView,
Rect bounds)
Composes the transition spec when docking a task, which includes a full task bitmap.
|
static Bitmap |
composeTaskBitmap(TaskView taskView,
TaskViewTransform transform) |
IAppTransitionAnimationSpecsFuture |
getAppTransitionFuture(RecentsTransitionHelper.AnimationSpecComposer composer)
Creates a future which will later be queried for animation specs for this current transition.
|
void |
launchTaskFromRecents(TaskStack stack,
Task task,
TaskStackView stackView,
TaskView taskView,
boolean screenPinningRequested,
Rect bounds,
int destinationStack)
Launches the specified
Task . |
IRemoteCallback |
wrapStartedListener(ActivityOptions.OnAnimationStartedListener listener) |
public RecentsTransitionHelper(Context context)
public void launchTaskFromRecents(TaskStack stack, Task task, TaskStackView stackView, TaskView taskView, boolean screenPinningRequested, Rect bounds, int destinationStack)
Task
.public IRemoteCallback wrapStartedListener(ActivityOptions.OnAnimationStartedListener listener)
public IAppTransitionAnimationSpecsFuture getAppTransitionFuture(RecentsTransitionHelper.AnimationSpecComposer composer)
composer
- The implementation that composes the specs on the UI thread.public List<AppTransitionAnimationSpec> composeDockAnimationSpec(TaskView taskView, Rect bounds)
public static Bitmap composeTaskBitmap(TaskView taskView, TaskViewTransform transform)