public static class ActivityManager.StackId extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DOCKED_STACK_ID
ID of stack that occupies a dedicated region of the screen.
|
static int |
FIRST_DYNAMIC_STACK_ID
Start of ID range used by stacks that are created dynamically.
|
static int |
FIRST_STATIC_STACK_ID
First static stack ID.
|
static int |
FREEFORM_WORKSPACE_STACK_ID
ID of stack where freeform/resized activities are normally launched into.
|
static int |
FULLSCREEN_WORKSPACE_STACK_ID
ID of stack where fullscreen activities are normally launched into.
|
static int |
HOME_STACK_ID
Home activity stack ID.
|
static int |
INVALID_STACK_ID
Invalid stack ID.
|
static int |
LAST_STATIC_STACK_ID
Last static stack stack ID.
|
static int |
PINNED_STACK_ID
ID of stack that always on top (always visible) when it exist.
|
Constructor and Description |
---|
StackId() |
Modifier and Type | Method and Description |
---|---|
static boolean |
activitiesCanRequestVisibleBehind(int stackId)
Returns true if activities contained in this stack can request visible behind by
calling
Activity.requestVisibleBehind(boolean) . |
static boolean |
allowTopTaskToReturnHome(int stackId)
Returns true if the top task in the task is allowed to return home when finished and
there are other tasks in the stack.
|
static boolean |
canReceiveKeys(int stackId)
Returns true if the windows in the stack can receive input keys.
|
static boolean |
hasMovementAnimations(int stackId)
Returns true if windows in this stack should be given move animations
by default.
|
static boolean |
hasWindowDecor(int stackId)
Returns true if the activities contained in the input stack display a decor view.
|
static boolean |
hasWindowShadow(int stackId)
Returns true if the activities contained in the input stack display a shadow around
their border.
|
static boolean |
isAllowedOverLockscreen(int stackId)
Returns true if the stack can be visible above lockscreen.
|
static boolean |
isAlwaysOnTop(int stackId) |
static boolean |
isDynamicStacksVisibleBehindAllowed(int stackId)
Returns true if dynamic stacks are allowed to be visible behind the input stack.
|
static boolean |
isMultiWindowStack(int stackId)
Returns true if the input stack id should only be present on a device that supports
multi-window mode.
|
static boolean |
isResizeableByDockedStack(int stackId)
Returns true if Stack size is affected by the docked stack changing size.
|
static boolean |
isStaticStack(int stackId) |
static boolean |
isTaskResizeableByDockedStack(int stackId)
Returns true if the size of tasks in the input stack are affected by the docked stack
changing size.
|
static boolean |
isTaskResizeAllowed(int stackId)
Returns true if the tasks contained in the stack can be resized independently of the
stack.
|
static boolean |
keepFocusInStackIfPossible(int stackId)
Returns true if we try to maintain focus in the current stack when the top activity
finishes.
|
static boolean |
keepVisibleDeadAppWindowOnScreen(int stackId)
Returns true if any visible windows belonging to apps in this stack should be kept on
screen when the app is killed due to something like the low memory killer.
|
static boolean |
normallyFullscreenWindows(int stackId)
Returns true if a window from the specified stack with are normally
fullscreen, i. e. they can become the top opaque fullscreen window, meaning that it
controls system bars, lockscreen occluded/dismissing state, screen rotation animation,
etc.
|
static boolean |
persistTaskBounds(int stackId)
Returns true if the task bounds should persist across power cycles.
|
static boolean |
replaceWindowsOnTaskMove(int sourceStackId,
int targetStackId)
Returns true if the windows of tasks being moved to the target stack from the source
stack should be replaced, meaning that window manager will keep the old window around
until the new is ready.
|
static boolean |
resizeStackWithLaunchBounds(int stackId)
Returns true if the stack should be resized to match the bounds specified by
ActivityOptions.setLaunchBounds(android.graphics.Rect) when launching an activity into the stack. |
static boolean |
tasksAreFloating(int stackId)
Return whether a stackId is a stack containing floating windows.
|
static boolean |
useAnimationSpecForAppTransition(int stackId)
Returns true if animation specs should be constructed for app transition that moves
the task to the specified stack.
|
static boolean |
useWindowFrameForBackdrop(int stackId)
Returns true if the backdrop on the client side should match the frame of the window.
|
static boolean |
windowsAreScaleable(int stackId)
Returns true if this stack may be scaled without resizing,
and windows within may need to be configured as such.
|
public static final int INVALID_STACK_ID
public static final int FIRST_STATIC_STACK_ID
public static final int HOME_STACK_ID
public static final int FULLSCREEN_WORKSPACE_STACK_ID
public static final int FREEFORM_WORKSPACE_STACK_ID
public static final int DOCKED_STACK_ID
public static final int PINNED_STACK_ID
public static final int LAST_STATIC_STACK_ID
public static final int FIRST_DYNAMIC_STACK_ID
public static boolean isStaticStack(int stackId)
public static boolean hasWindowShadow(int stackId)
public static boolean hasWindowDecor(int stackId)
public static boolean isTaskResizeAllowed(int stackId)
public static boolean persistTaskBounds(int stackId)
public static boolean isDynamicStacksVisibleBehindAllowed(int stackId)
public static boolean keepFocusInStackIfPossible(int stackId)
public static boolean isResizeableByDockedStack(int stackId)
public static boolean isTaskResizeableByDockedStack(int stackId)
public static boolean replaceWindowsOnTaskMove(int sourceStackId, int targetStackId)
public static boolean tasksAreFloating(int stackId)
public static boolean useAnimationSpecForAppTransition(int stackId)
public static boolean canReceiveKeys(int stackId)
public static boolean isAllowedOverLockscreen(int stackId)
public static boolean isAlwaysOnTop(int stackId)
public static boolean allowTopTaskToReturnHome(int stackId)
public static boolean resizeStackWithLaunchBounds(int stackId)
ActivityOptions.setLaunchBounds(android.graphics.Rect)
when launching an activity into the stack.public static boolean keepVisibleDeadAppWindowOnScreen(int stackId)
public static boolean useWindowFrameForBackdrop(int stackId)
public static boolean normallyFullscreenWindows(int stackId)
public static boolean isMultiWindowStack(int stackId)
ActivityManager.supportsMultiWindow()
public static boolean activitiesCanRequestVisibleBehind(int stackId)
Activity.requestVisibleBehind(boolean)
.public static boolean windowsAreScaleable(int stackId)
public static boolean hasMovementAnimations(int stackId)