public
static
class
ActivityManager.TaskDescription
extends Object
implements
Parcelable
| java.lang.Object | |
| ↳ | android.app.ActivityManager.TaskDescription |
Information you can set and retrieve about the current activity within the recent task list.
Inherited constants |
|---|
android.os.Parcelable
|
Fields | |
|---|---|
public
static
final
Creator<ActivityManager.TaskDescription> |
CREATOR
|
Public constructors | |
|---|---|
ActivityManager.TaskDescription(String label, Bitmap icon, int colorPrimary)
Creates the TaskDescription to the specified values. |
|
ActivityManager.TaskDescription(String label, Bitmap icon)
Creates the TaskDescription to the specified values. |
|
ActivityManager.TaskDescription(String label)
Creates the TaskDescription to the specified values. |
|
ActivityManager.TaskDescription()
Creates an empty TaskDescription. |
|
ActivityManager.TaskDescription(ActivityManager.TaskDescription td)
Creates a copy of another TaskDescription. |
|
Public methods | |
|---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
Bitmap
|
getIcon()
|
String
|
getLabel()
|
int
|
getPrimaryColor()
|
void
|
readFromParcel(Parcel source)
|
String
|
toString()
Returns a string containing a concise, human-readable description of this object. |
void
|
writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
java.lang.Object
| |
android.os.Parcelable
| |
ActivityManager.TaskDescription (String label, Bitmap icon, int colorPrimary)
Creates the TaskDescription to the specified values.
| Parameters | |
|---|---|
label |
String:
A label and description of the current state of this task. |
icon |
Bitmap:
An icon that represents the current state of this task. |
colorPrimary |
int:
A color to override the theme's primary color. This color must be opaque.
|
ActivityManager.TaskDescription (String label, Bitmap icon)
Creates the TaskDescription to the specified values.
| Parameters | |
|---|---|
label |
String:
A label and description of the current state of this activity. |
icon |
Bitmap:
An icon that represents the current state of this activity.
|
ActivityManager.TaskDescription (String label)
Creates the TaskDescription to the specified values.
| Parameters | |
|---|---|
label |
String:
A label and description of the current state of this activity.
|
ActivityManager.TaskDescription ()
Creates an empty TaskDescription.
ActivityManager.TaskDescription (ActivityManager.TaskDescription td)
Creates a copy of another TaskDescription.
| Parameters | |
|---|---|
td |
ActivityManager.TaskDescription
|
int describeContents ()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
| Returns | |
|---|---|
int |
a bitmask indicating the set of special object types marshalled by the Parcelable. |
Bitmap getIcon ()
| Returns | |
|---|---|
Bitmap |
The icon that represents the current state of this task. |
String getLabel ()
| Returns | |
|---|---|
String |
The label and description of the current state of this task. |
int getPrimaryColor ()
| Returns | |
|---|---|
int |
The color override on the theme's primary color. |
String toString ()
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.
| Returns | |
|---|---|
String |
a printable representation of this object. |
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.
|