com.todoroo.astrid.api
Class TaskAction

java.lang.Object
  extended by com.todoroo.astrid.api.TaskAction
All Implemented Interfaces:
android.os.Parcelable

public class TaskAction
extends java.lang.Object
implements android.os.Parcelable

Represents an intent that can be called on a task

Author:
Tim Su

Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
android.os.Parcelable.Creator<T>
 
Field Summary
static android.os.Parcelable.Creator<TaskAction> CREATOR
          Parcelable creator
 int drawable
          Quick action drawable resource
 android.graphics.Bitmap icon
          Quick action icon
 android.app.PendingIntent intent
          Intent to call when invoking this operation
 java.lang.String text
          Label
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
TaskAction(java.lang.String text, android.app.PendingIntent intent, android.graphics.Bitmap icon)
          Create an EditOperation object
 
Method Summary
 int describeContents()
          
 void writeToParcel(android.os.Parcel dest, int flags)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

public java.lang.String text
Label


intent

public android.app.PendingIntent intent
Intent to call when invoking this operation


icon

public android.graphics.Bitmap icon
Quick action icon


drawable

public int drawable
Quick action drawable resource


CREATOR

public static final android.os.Parcelable.Creator<TaskAction> CREATOR
Parcelable creator

Constructor Detail

TaskAction

public TaskAction(java.lang.String text,
                  android.app.PendingIntent intent,
                  android.graphics.Bitmap icon)
Create an EditOperation object

Parameters:
text - label to display
intent - intent to invoke. #EXTRAS_TASK_ID will be passed
Method Detail

describeContents

public int describeContents()

Specified by:
describeContents in interface android.os.Parcelable

writeToParcel

public void writeToParcel(android.os.Parcel dest,
                          int flags)

Specified by:
writeToParcel in interface android.os.Parcelable