TaskLocation
public
class
TaskLocation
extends Object
| java.lang.Object | |
| ↳ | android.app.TaskLocation |
Represents location of an ActivityManager.AppTask that consists of the host display
identifier and rectangular bounds in the pixel-based coordinate system relative to host display.
Summary
Public constructors | |
|---|---|
TaskLocation(int displayId, Rect bounds)
Creates a |
|
Public methods | |
|---|---|
Rect
|
getBounds()
Gets the bounds in the display, in the local coordinates of the display in pixels. |
int
|
getDisplayId()
Gets ID of the display. |
Inherited methods | |
|---|---|
Public constructors
TaskLocation
public TaskLocation (int displayId,
Rect bounds)Creates a TaskLocation with the given display ID and bounds.
| Parameters | |
|---|---|
displayId |
int |
bounds |
Rect: This value cannot be null. |
Public methods
getBounds
public Rect getBounds ()
Gets the bounds in the display, in the local coordinates of the display in pixels.
| Returns | |
|---|---|
Rect |
This value cannot be null. |
getDisplayId
public int getDisplayId ()
Gets ID of the display.
| Returns | |
|---|---|
int |
|