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 |
toString() |
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
toString
open fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
Properties
baseActivity
var baseActivity: ComponentName?
The component of the first activity in the task, can be considered the "application" of this task.
baseIntent
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
var isRunning: Boolean
Whether or not this task has any running activities.
numActivities
var numActivities: Int
The number of activities in this task (including running).
origActivity
var origActivity: ComponentName?
The component of the target activity if this task was started from an activity alias. Otherwise, this is null.
taskDescription
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)
.
topActivity
var topActivity: ComponentName?
The component of the top activity in the task, currently showing to the user.