Added in API level 1

RunningTaskInfo


open class RunningTaskInfo : TaskInfo, Parcelable
kotlin.Any
   ↳ android.app.TaskInfo
   ↳ android.app.ActivityManager.RunningTaskInfo

Information you can retrieve about a particular task that is currently "running" in the system. Note that a running task does not mean the given task actually has a process it is actively running in; it simply means that the user has gone to it and never closed it, but currently the system may have killed its process and is only holding on to its last state in order to restart it when the user returns.

Summary

Inherited constants
Public constructors

Public methods
open Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

open Unit

open Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Inherited functions
Properties
static Parcelable.Creator<ActivityManager.RunningTaskInfo!>

CharSequence!

Description of the task's current state.

Int

A unique identifier for this task.

Int

Number of activities that are currently running (not stopped and persisted) in this task.

Bitmap!

Thumbnail representation of the task's current state.

Inherited properties

Public constructors

RunningTaskInfo

Added in API level 1
RunningTaskInfo()

Public methods

describeContents

Added in API level 1
open fun describeContents(): Int

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(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

readFromParcel

Added in API level 1
open fun readFromParcel(source: Parcel!): Unit

writeToParcel

Added in API level 1
open fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

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 the following:

Properties

CREATOR

Added in API level 1
static val CREATOR: Parcelable.Creator<ActivityManager.RunningTaskInfo!>

description

Added in API level 1
Deprecated in API level 29
var description: CharSequence!

Deprecated: As of android.os.Build.VERSION_CODES#Q, currently always null.

Description of the task's current state.

id

Added in API level 1
Deprecated in API level 29
var id: Int

Deprecated: As of android.os.Build.VERSION_CODES#Q, use RunningTaskInfo.taskId.

A unique identifier for this task.

numRunning

Added in API level 1
Deprecated in API level 29
var numRunning: Int

Deprecated: As of android.os.Build.VERSION_CODES#Q, currently always 0.

Number of activities that are currently running (not stopped and persisted) in this task.

thumbnail

Added in API level 1
Deprecated in API level 29
var thumbnail: Bitmap!

Deprecated: As of android.os.Build.VERSION_CODES#Q, currently always null.

Thumbnail representation of the task's current state.