public
static
class
ActivityManager.RecentTaskInfo
extends Object
implements
Parcelable
java.lang.Object | |
↳ | android.app.ActivityManager.RecentTaskInfo |
Information you can retrieve about tasks that the user has most recently started or visited.
Inherited constants |
---|
From
interface
android.os.Parcelable
|
Fields | |
---|---|
public
static
final
Creator<ActivityManager.RecentTaskInfo> |
CREATOR
|
public
int |
affiliatedTaskId
Task affiliation for grouping with other tasks. |
public
ComponentName |
baseActivity
The component launched as the first activity in the task. |
public
Intent |
baseIntent
The original Intent used to launch the task. |
public
CharSequence |
description
Description of the task's last state. |
public
int |
id
If this task is currently running, this is the identifier for it. |
public
int |
numActivities
Number of activities in this task. |
public
ComponentName |
origActivity
If this task was started from an alias, this is the actual activity component that was initially started; the component of the baseIntent in this case is the name of the actual activity implementation that the alias referred to. |
public
int |
persistentId
The true identifier of this task, valid even if it is not running. |
public
ActivityManager.TaskDescription |
taskDescription
The recent activity values for the highest activity in the stack to have set the values. |
public
ComponentName |
topActivity
The activity component at the top of the history stack of the task. |
Public constructors | |
---|---|
ActivityManager.RecentTaskInfo()
|
Public methods | |
---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
void
|
readFromParcel(Parcel source)
|
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
---|---|
From
class
java.lang.Object
| |
From
interface
android.os.Parcelable
|
int affiliatedTaskId
Task affiliation for grouping with other tasks.
ComponentName baseActivity
The component launched as the first activity in the task. This can be considered the "application" of this task.
Intent baseIntent
The original Intent used to launch the task. You can use this Intent to re-launch the task (if it is no longer running) or bring the current task to the front.
int id
If this task is currently running, this is the identifier for it. If it is not running, this will be -1.
ComponentName origActivity
If this task was started from an alias, this is the actual activity component that was initially started; the component of the baseIntent in this case is the name of the actual activity implementation that the alias referred to. Otherwise, this is null.
int persistentId
The true identifier of this task, valid even if it is not running.
ActivityManager.TaskDescription taskDescription
The recent activity values for the highest activity in the stack to have set the values.
setTaskDescription(android.app.ActivityManager.TaskDescription)
.
ComponentName topActivity
The activity component at the top of the history stack of the task. This is what the user is currently doing.
int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(Parcel, int)
,
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR
bit.
Returns | |
---|---|
int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. |
void writeToParcel (Parcel dest, int flags)
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel :
The Parcel in which the object should be written. |
flags |
int :
Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|