public static class TaskStack.DockState extends Object implements DropTarget
Modifier and Type | Class and Description |
---|---|
static interface |
TaskStack.DockState.TextOrientation |
static class |
TaskStack.DockState.ViewState |
Modifier and Type | Field and Description |
---|---|
static TaskStack.DockState |
BOTTOM |
int |
createMode |
int |
dockSide |
static TaskStack.DockState |
LEFT |
static TaskStack.DockState |
NONE |
static TaskStack.DockState |
RIGHT |
static TaskStack.DockState |
TOP |
TaskStack.DockState.ViewState |
viewState |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDrop(int x,
int y,
int width,
int height,
Rect insets,
boolean isCurrentTarget)
Returns whether this target can accept this drop.
|
Rect |
getDockedBounds(int width,
int height,
int dividerSize,
Rect insets,
Resources res)
Returns the expanded docked task bounds with the given and
.
|
Rect |
getDockedTaskStackBounds(Rect displayRect,
int width,
int height,
int dividerSize,
Rect insets,
TaskStackLayoutAlgorithm layoutAlgorithm,
Resources res,
Rect windowRectOut)
Returns the task stack bounds with the given and
.
|
Rect |
getPreDockedBounds(int width,
int height,
Rect insets)
Returns the docked task bounds with the given and .
|
void |
update(Context context)
Updates the dock state with the given context.
|
public static final TaskStack.DockState NONE
public static final TaskStack.DockState LEFT
public static final TaskStack.DockState TOP
public static final TaskStack.DockState RIGHT
public static final TaskStack.DockState BOTTOM
public final int dockSide
public final int createMode
public final TaskStack.DockState.ViewState viewState
public boolean acceptsDrop(int x, int y, int width, int height, Rect insets, boolean isCurrentTarget)
DropTarget
acceptsDrop
in interface DropTarget
public void update(Context context)
public Rect getPreDockedBounds(int width, int height, Rect insets)
public Rect getDockedBounds(int width, int height, int dividerSize, Rect insets, Resources res)