RecentTaskInfo
open class RecentTaskInfo : TaskInfo, Parcelable
kotlin.Any | ||
↳ | android.app.TaskInfo | |
↳ | android.app.ActivityManager.RecentTaskInfo |
Information you can retrieve about tasks that the user has most recently started or visited.
Summary
Inherited constants | |
---|---|
Public constructors | |
---|---|
Public methods | |
---|---|
open Int | |
open Unit |
readFromParcel(source: Parcel!) |
open Unit |
writeToParcel(dest: Parcel, flags: Int) |
Inherited functions | |
---|---|
Properties | |
---|---|
static Parcelable.Creator<ActivityManager.RecentTaskInfo!> | |
Int |
Task affiliation for grouping with other tasks. |
CharSequence! |
Description of the task's last state. |
Int |
If this task is currently running, this is the identifier for it. |
Int |
The true identifier of this task, valid even if it is not running. |
Inherited properties | |
---|---|
Public constructors
Public methods
describeContents
open fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
writeToParcel
open fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Parameters | |
---|---|
dest |
Parcel: The Parcel in which the object should be written. This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
static val CREATOR: Parcelable.Creator<ActivityManager.RecentTaskInfo!>
affiliatedTaskId
varaffiliatedTaskId: Int
Deprecated: As of android.os.Build.VERSION_CODES#Q
, currently always 0.
Task affiliation for grouping with other tasks.
description
vardescription: CharSequence!
Deprecated: As of android.os.Build.VERSION_CODES#Q
, currently always null.
Description of the task's last state.
id
varid: Int
Deprecated: As of android.os.Build.VERSION_CODES#Q
, use RecentTaskInfo#taskId
to get the task id and RecentTaskInfo#isRunning
to determine if it is running.
If this task is currently running, this is the identifier for it. If it is not running, this will be -1.
persistentId
varpersistentId: Int
Deprecated: As of android.os.Build.VERSION_CODES#Q
, use RecentTaskInfo#taskId
.
The true identifier of this task, valid even if it is not running.