ActivityManager.RecentTaskInfo | API reference | Android Developers
public
static
class
ActivityManager.RecentTaskInfo
extends TaskInfo
implements
Parcelable
Information you can retrieve about tasks that the user has most recently started or visited.
Summary
Inherited constants | ||||
|---|---|---|---|---|
|
From interface
|
Fields | |
|---|---|
public
static
final
Creator<ActivityManager.RecentTaskInfo> |
CREATOR
|
public
int |
affiliatedTaskId
This field was deprecated
in API level 29.
As of |
public
CharSequence |
description
This field was deprecated
in API level 29.
As of |
public
int |
id
This field was deprecated
in API level 29.
As of |
public
int |
persistentId
This field was deprecated
in API level 29.
As of |
Inherited fields | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
|
Public constructors | |
|---|---|
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
| |||||||||||||||||||||||
|
From class
| |||||||||||||||||||||||
|
From interface
| |||||||||||||||||||||||
Fields
affiliatedTaskId
public int affiliatedTaskId
This field was deprecated
in API level 29.
As of Build.VERSION_CODES.Q, currently always 0.
Task affiliation for grouping with other tasks.
description
public CharSequence description
This field was deprecated
in API level 29.
As of Build.VERSION_CODES.Q, currently always null.
Description of the task's last state.
Public constructors
RecentTaskInfo
public RecentTaskInfo ()
Public methods
describeContents
public 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.
Value is either 0 or
|