public static class ActivityManager.RecentTaskInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
int |
affiliatedTaskColor
Task affiliation color of the source task with the affiliated task id.
|
int |
affiliatedTaskId
Task affiliation for grouping with other tasks.
|
ComponentName |
baseActivity
The component launched as the first activity in the task.
|
Intent |
baseIntent
The original Intent used to launch the task.
|
Rect |
bounds
The bounds of the task.
|
static Parcelable.Creator<ActivityManager.RecentTaskInfo> |
CREATOR |
CharSequence |
description
Description of the task's last state.
|
long |
firstActiveTime
The first time this task was active.
|
int |
id
If this task is currently running, this is the identifier for it.
|
boolean |
isDockable
True if the task can go in the docked stack.
|
long |
lastActiveTime
The last time this task was active.
|
int |
numActivities
Number of activities in this task.
|
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.
|
int |
persistentId
The true identifier of this task, valid even if it is not running.
|
ComponentName |
realActivity
The actual activity component that started the task.
|
int |
resizeMode
The resize mode of the task.
|
int |
stackId
The id of the ActivityStack this Task was on most recently.
|
ActivityManager.TaskDescription |
taskDescription
The recent activity values for the highest activity in the stack to have set the values.
|
ComponentName |
topActivity
The activity component at the top of the history stack of the task.
|
int |
userId
The id of the user the task was running as.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
RecentTaskInfo() |
Modifier and Type | Method and Description |
---|---|
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.
|
public int id
public int persistentId
public Intent baseIntent
public ComponentName origActivity
public ComponentName realActivity
public CharSequence description
public int stackId
public int userId
public long firstActiveTime
public long lastActiveTime
public ActivityManager.TaskDescription taskDescription
Activity.setTaskDescription(android.app.ActivityManager.TaskDescription)
.public int affiliatedTaskId
public int affiliatedTaskColor
public ComponentName baseActivity
public ComponentName topActivity
public int numActivities
public Rect bounds
public boolean isDockable
public int resizeMode
ActivityInfo.resizeMode
.public static final Parcelable.Creator<ActivityManager.RecentTaskInfo> CREATOR
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public void readFromParcel(Parcel source)