TaskDescription
open class TaskDescription : Parcelable
Information you can set and retrieve about the current activity within the recent task list.
Summary
Inherited constants
|
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents(): indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel: the object being written is a return value, that is the result of a function such as "Parcelable someFunction()", "void someFunction(out Parcelable)", or "void someFunction(inout Parcelable)". Some implementations may want to release resources at this point.
|
|
Public constructors
|
|
Creates the TaskDescription to the specified values.
|
|
Creates the TaskDescription to the specified values.
|
|
Creates the TaskDescription to the specified values.
|
|
Creates an empty TaskDescription.
|
|
Creates the TaskDescription to the specified values.
|
|
Creates the TaskDescription to the specified values.
|
|
Creates a copy of another TaskDescription.
|
Public constructors
<init>
TaskDescription(
label: String!,
iconRes: Int,
colorPrimary: Int)
Creates the TaskDescription to the specified values.
| Parameters |
label |
String!: A label and description of the current state of this task. |
iconRes |
Int: A drawable resource of an icon that represents the current state of this activity. |
colorPrimary |
Int: A color to override the theme's primary color. This color must be opaque. |
<init>
TaskDescription(
label: String!,
iconRes: Int)
Creates the TaskDescription to the specified values.
| Parameters |
label |
String!: A label and description of the current state of this activity. |
iconRes |
Int: A drawable resource of an icon that represents the current state of this activity. |
<init>
TaskDescription(label: String!)
Creates the TaskDescription to the specified values.
| Parameters |
label |
String!: A label and description of the current state of this activity. |
<init>
TaskDescription()
Creates an empty TaskDescription.
<init>
TaskDescription(
label: String!,
icon: Bitmap!,
colorPrimary: Int)
Deprecated: use TaskDescription constructor with icon resource instead
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. |
<init>
TaskDescription(
label: String!,
icon: Bitmap!)
Deprecated: use TaskDescription constructor with icon resource instead
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. |
Public methods
describeContents
open fun describeContents(): Int
equals
open fun equals(other: Any?): Boolean
| Parameters |
obj |
the reference object with which to compare. |
| Return |
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getIcon
open fun getIcon(): Bitmap!
Deprecated: This call is no longer supported. The caller should keep track of any icons it sets for the task descriptions internally.
| Return |
Bitmap! |
The in-memory or loaded icon that represents the current state of this task. |
getLabel
open fun getLabel(): String!
| Return |
String! |
The label and description of the current state of this task. |
getPrimaryColor
open fun getPrimaryColor(): Int
| Return |
Int |
The color override on the theme's primary color. |
readFromParcel
open fun readFromParcel(source: Parcel!): Unit
toString
open fun toString(): String
| Return |
String |
a string representation of the object. |
writeToParcel
open fun writeToParcel(
dest: Parcel!,
flags: Int
): Unit
Properties