TaskLocation


open class TaskLocation
kotlin.Any
   ↳ 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(displayId: Int, bounds: Rect)

Creates a TaskLocation with the given display ID and bounds.

Public methods
open Rect

Gets the bounds in the display, in the local coordinates of the display in pixels.

open Int

Gets ID of the display.

Public constructors

TaskLocation

TaskLocation(
    displayId: Int,
    bounds: Rect)

Creates a TaskLocation with the given display ID and bounds.

Parameters
bounds Rect: This value cannot be null.

Public methods

getBounds

open fun getBounds(): Rect

Gets the bounds in the display, in the local coordinates of the display in pixels.

Return
Rect This value cannot be null.

getDisplayId

open fun getDisplayId(): Int

Gets ID of the display.