Added in API level 29

TaskInfo


open class TaskInfo
kotlin.Any
   ↳ android.app.TaskInfo

Stores information about a particular Task.

Summary

Public methods
open Boolean

Whether this task is visible.

open String

Properties
ComponentName?

The component of the first activity in the task, can be considered the "application" of this task.

Intent

The base intent of the task (generally the intent that launched the task).

Boolean

Whether or not this task has any running activities.

Int

The number of activities in this task (including running).

ComponentName?

The component of the target activity if this task was started from an activity alias.

ActivityManager.TaskDescription?

The recent activity values for the highest activity in the stack to have set the values.

Int

The identifier for this task.

ComponentName?

The component of the top activity in the task, currently showing to the user.

Public methods

isVisible

Added in API level 32
open fun isVisible(): Boolean

Whether this task is visible.

toString

Added in API level 29
open fun toString(): String
Return
String a string representation of the object.

Properties

baseActivity

Added in API level 29
var baseActivity: ComponentName?

The component of the first activity in the task, can be considered the "application" of this task.

baseIntent

Added in API level 29
var baseIntent: Intent

The base intent of the task (generally the intent that launched the task). This intent can be used to relaunch the task (if it is no longer running) or brought to the front if it is.

isRunning

Added in API level 29
var isRunning: Boolean

Whether or not this task has any running activities.

numActivities

Added in API level 29
var numActivities: Int

The number of activities in this task (including running).

origActivity

Added in API level 29
var origActivity: ComponentName?

The component of the target activity if this task was started from an activity alias. Otherwise, this is null.

taskDescription

Added in API level 29
var taskDescription: ActivityManager.TaskDescription?

The recent activity values for the highest activity in the stack to have set the values. Activity#setTaskDescription(android.app.ActivityManager.TaskDescription).

taskId

Added in API level 29
var taskId: Int

The identifier for this task.

topActivity

Added in API level 29
var topActivity: ComponentName?

The component of the top activity in the task, currently showing to the user.