com.todoroo.astrid.api
Class AstridApiConstants

java.lang.Object
  extended by com.todoroo.astrid.api.AstridApiConstants

public class AstridApiConstants
extends java.lang.Object

Constants for interfacing with Astrid.

Author:
Tim Su

Field Summary
static java.lang.String ACTION_SETTINGS
          Action name for intents to be displayed in Astrid's settings.
static java.lang.String ACTION_TASK_CONTEXT_MENU
          Action name for intents to be displayed on task context menu EXTRAS_TASK_ID id of the task
static java.lang.String ACTION_TASK_LIST_MENU
          Action name for intents to be displayed on Astrid's task list menu EXTRAS_ADDON your add-on identifier EXTRAS_RESPONSE an array of Intents
static java.lang.String BROADCAST_EVENT_FLUSH_DETAILS
          Action name for broadcast intent notifying Astrid to clear detail cache because an event occurred that potentially affects all tasks (e.g.
static java.lang.String BROADCAST_EVENT_REFRESH
          Action name for broadcast intent notifying Astrid task list to refresh
static java.lang.String BROADCAST_EVENT_STARTUP
          Action name for broadcast intent notifying add-ons that Astrid started up
static java.lang.String BROADCAST_EVENT_TASK_COMPLETED
          Action name for broadcast intent notifying that task was completed EXTRAS_TASK_ID id of the task
static java.lang.String BROADCAST_EVENT_TASK_LIST_UPDATED
          Action name for broadcast intent notifying that task was created or title was changed EXTRAS_TASK_ID id of the task
static java.lang.String BROADCAST_EVENT_TASK_REPEATED
          Action name for broadcast intent notifying that task was created from repeating template EXTRAS_TASK_ID id of the task EXTRAS_OLD_DUE_DATE task old due date (could be 0) EXTRAS_NEW_DUE_DATE task new due date (will not be 0)
static java.lang.String BROADCAST_REQUEST_ACTIONS
          Action name for broadcast intent requesting actions for a task EXTRAS_TASK_ID id of the task
static java.lang.String BROADCAST_REQUEST_ADDONS
          Action name for broadcast intent requesting add-ons
static java.lang.String BROADCAST_REQUEST_CUSTOM_FILTER_CRITERIA
          Action name for a broadcast intent requesting custom filter criteria (e.g.
static java.lang.String BROADCAST_REQUEST_DECORATIONS
          Action name for broadcast intent requesting task list decorations for a task EXTRAS_TASK_ID id of the task
static java.lang.String BROADCAST_REQUEST_DETAILS
          Action name for broadcast intent requesting details for a task.
static java.lang.String BROADCAST_REQUEST_EDIT_CONTROLS
          Action name for broadcast intent requesting task edit controls EXTRAS_TASK_ID id of the task user is editing
static java.lang.String BROADCAST_REQUEST_FILTERS
          Action name for broadcast intent requesting filters
static java.lang.String BROADCAST_REQUEST_SYNC_ACTIONS
          Action name for broadcast intent requesting a listing of active sync actions users can activate from the menu
static java.lang.String BROADCAST_SEND_ACTIONS
          Action name for broadcast intent sending actions back to Astrid EXTRAS_ADDON your add-on identifier EXTRAS_TASK_ID id of the task EXTRAS_RESPONSE a String
static java.lang.String BROADCAST_SEND_ADDONS
          Action name for broadcast intent sending add-ons back to Astrid EXTRAS_RESPONSE an Addon object
static java.lang.String BROADCAST_SEND_CUSTOM_FILTER_CRITERIA
          Action name for broadcast intent sending custom filter criteria back to Astrid EXTRAS_ADDON you add-on identifier EXTRAS_RESPONSE an array of CustomFilterCriterion
static java.lang.String BROADCAST_SEND_DECORATIONS
          Action name for broadcast intent sending decorations back to Astrid EXTRAS_ADDON your add-on identifier EXTRAS_TASK_ID id of the task EXTRAS_RESPONSE a TaskDecoration
static java.lang.String BROADCAST_SEND_DETAILS
          Action name for broadcast intent sending details back to Astrid EXTRAS_ADDON your add-on identifier EXTRAS_TASK_ID id of the task EXTRAS_EXTENDED whether request is for standard or extended details EXTRAS_RESPONSE a String
static java.lang.String BROADCAST_SEND_EDIT_CONTROLS
          Action name for broadcast intent sending task edit controls back to Astrid EXTRAS_ADDON your add-on identifier EXTRAS_RESPONSE a RemoteViews with your edit controls
static java.lang.String BROADCAST_SEND_FILTERS
          Action name for broadcast intent sending filters back to Astrid EXTRAS_ADDON your add-on identifier EXTRAS_RESPONSE an array of FilterListItems
static java.lang.String BROADCAST_SEND_SYNC_ACTIONS
          Action name for broadcast intent sending sync provider information back to Astrid EXTRAS_ADDON your add-on identifier EXTRAS_RESPONSE a SyncAction to invoke synchronization
static java.lang.String EXTRAS_ADDON
          Extras name for plug-in identifier
static java.lang.String EXTRAS_NAME
          Extras name for sync provider name
static java.lang.String EXTRAS_NEW_DUE_DATE
          Extras name for new task due date
static java.lang.String EXTRAS_OLD_DUE_DATE
          Extras name for old task due date
static java.lang.String EXTRAS_RESPONSE
          Extras name for a response item broadcast to astrid
static java.lang.String EXTRAS_TASK_ID
          Extras name for task id
static java.lang.String GROUP_BY_URI
          URI to append to base content URI for making group-by queries
static java.lang.String PACKAGE
          Astrid broadcast base package name
static java.lang.String PERMISSION_READ
          Permission for reading tasks and receiving to GET_FILTERS intent
static java.lang.String PERMISSION_WRITE
          Permission for writing and creating tasks
static java.lang.String PUBLIC_PREFS
          Name of Astrid's publicly readable preference store
 
Constructor Summary
AstridApiConstants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGE

public static final java.lang.String PACKAGE
Astrid broadcast base package name

See Also:
Constant Field Values

PERMISSION_READ

public static final java.lang.String PERMISSION_READ
Permission for reading tasks and receiving to GET_FILTERS intent

See Also:
Constant Field Values

PERMISSION_WRITE

public static final java.lang.String PERMISSION_WRITE
Permission for writing and creating tasks

See Also:
Constant Field Values

PUBLIC_PREFS

public static final java.lang.String PUBLIC_PREFS
Name of Astrid's publicly readable preference store

See Also:
Constant Field Values

GROUP_BY_URI

public static final java.lang.String GROUP_BY_URI
URI to append to base content URI for making group-by queries

See Also:
Constant Field Values

EXTRAS_TASK_ID

public static final java.lang.String EXTRAS_TASK_ID
Extras name for task id

See Also:
Constant Field Values

EXTRAS_RESPONSE

public static final java.lang.String EXTRAS_RESPONSE
Extras name for a response item broadcast to astrid

See Also:
Constant Field Values

EXTRAS_ADDON

public static final java.lang.String EXTRAS_ADDON
Extras name for plug-in identifier

See Also:
Constant Field Values

EXTRAS_OLD_DUE_DATE

public static final java.lang.String EXTRAS_OLD_DUE_DATE
Extras name for old task due date

See Also:
Constant Field Values

EXTRAS_NEW_DUE_DATE

public static final java.lang.String EXTRAS_NEW_DUE_DATE
Extras name for new task due date

See Also:
Constant Field Values

EXTRAS_NAME

public static final java.lang.String EXTRAS_NAME
Extras name for sync provider name

See Also:
Constant Field Values

BROADCAST_REQUEST_ADDONS

public static final java.lang.String BROADCAST_REQUEST_ADDONS
Action name for broadcast intent requesting add-ons

See Also:
Constant Field Values

BROADCAST_SEND_ADDONS

public static final java.lang.String BROADCAST_SEND_ADDONS
Action name for broadcast intent sending add-ons back to Astrid
  • EXTRAS_RESPONSE an Addon object

    See Also:
    Constant Field Values

  • BROADCAST_REQUEST_FILTERS

    public static final java.lang.String BROADCAST_REQUEST_FILTERS
    Action name for broadcast intent requesting filters

    See Also:
    Constant Field Values

    BROADCAST_SEND_FILTERS

    public static final java.lang.String BROADCAST_SEND_FILTERS
    Action name for broadcast intent sending filters back to Astrid
  • EXTRAS_ADDON your add-on identifier
  • EXTRAS_RESPONSE an array of FilterListItems
  • See Also:
    Constant Field Values

    BROADCAST_REQUEST_CUSTOM_FILTER_CRITERIA

    public static final java.lang.String BROADCAST_REQUEST_CUSTOM_FILTER_CRITERIA
    Action name for a broadcast intent requesting custom filter criteria (e.g. "Due by, Tagged, Tag contains", etc.)

    See Also:
    Constant Field Values

    BROADCAST_SEND_CUSTOM_FILTER_CRITERIA

    public static final java.lang.String BROADCAST_SEND_CUSTOM_FILTER_CRITERIA
    Action name for broadcast intent sending custom filter criteria back to Astrid
  • EXTRAS_ADDON you add-on identifier
  • EXTRAS_RESPONSE an array of CustomFilterCriterion
  • See Also:
    Constant Field Values

    BROADCAST_REQUEST_EDIT_CONTROLS

    public static final java.lang.String BROADCAST_REQUEST_EDIT_CONTROLS
    Action name for broadcast intent requesting task edit controls
  • EXTRAS_TASK_ID id of the task user is editing

    See Also:
    Constant Field Values

  • BROADCAST_SEND_EDIT_CONTROLS

    public static final java.lang.String BROADCAST_SEND_EDIT_CONTROLS
    Action name for broadcast intent sending task edit controls back to Astrid
  • EXTRAS_ADDON your add-on identifier
  • EXTRAS_RESPONSE a RemoteViews with your edit controls

    See Also:
    Constant Field Values

  • BROADCAST_REQUEST_DETAILS

    public static final java.lang.String BROADCAST_REQUEST_DETAILS
    Action name for broadcast intent requesting details for a task. Extended details are displayed when a user presses on a task.
  • EXTRAS_TASK_ID id of the task
  • EXTRAS_EXTENDED whether request is for standard or extended details

    See Also:
    Constant Field Values

  • BROADCAST_SEND_DETAILS

    public static final java.lang.String BROADCAST_SEND_DETAILS
    Action name for broadcast intent sending details back to Astrid
  • EXTRAS_ADDON your add-on identifier
  • EXTRAS_TASK_ID id of the task
  • EXTRAS_EXTENDED whether request is for standard or extended details
  • EXTRAS_RESPONSE a String

    See Also:
    Constant Field Values

  • BROADCAST_REQUEST_SYNC_ACTIONS

    public static final java.lang.String BROADCAST_REQUEST_SYNC_ACTIONS
    Action name for broadcast intent requesting a listing of active sync actions users can activate from the menu

    See Also:
    Constant Field Values

    BROADCAST_SEND_SYNC_ACTIONS

    public static final java.lang.String BROADCAST_SEND_SYNC_ACTIONS
    Action name for broadcast intent sending sync provider information back to Astrid
  • EXTRAS_ADDON your add-on identifier
  • EXTRAS_RESPONSE a SyncAction to invoke synchronization

    See Also:
    Constant Field Values

  • BROADCAST_REQUEST_ACTIONS

    public static final java.lang.String BROADCAST_REQUEST_ACTIONS
    Action name for broadcast intent requesting actions for a task
  • EXTRAS_TASK_ID id of the task

    See Also:
    Constant Field Values

  • BROADCAST_SEND_ACTIONS

    public static final java.lang.String BROADCAST_SEND_ACTIONS
    Action name for broadcast intent sending actions back to Astrid
  • EXTRAS_ADDON your add-on identifier
  • EXTRAS_TASK_ID id of the task
  • EXTRAS_RESPONSE a String

    See Also:
    Constant Field Values

  • BROADCAST_REQUEST_DECORATIONS

    public static final java.lang.String BROADCAST_REQUEST_DECORATIONS
    Action name for broadcast intent requesting task list decorations for a task
  • EXTRAS_TASK_ID id of the task

    See Also:
    Constant Field Values

  • BROADCAST_SEND_DECORATIONS

    public static final java.lang.String BROADCAST_SEND_DECORATIONS
    Action name for broadcast intent sending decorations back to Astrid
  • EXTRAS_ADDON your add-on identifier
  • EXTRAS_TASK_ID id of the task
  • EXTRAS_RESPONSE a TaskDecoration

    See Also:
    Constant Field Values

  • ACTION_TASK_CONTEXT_MENU

    public static final java.lang.String ACTION_TASK_CONTEXT_MENU
    Action name for intents to be displayed on task context menu
  • EXTRAS_TASK_ID id of the task

    See Also:
    Constant Field Values

  • ACTION_TASK_LIST_MENU

    public static final java.lang.String ACTION_TASK_LIST_MENU
    Action name for intents to be displayed on Astrid's task list menu
  • EXTRAS_ADDON your add-on identifier
  • EXTRAS_RESPONSE an array of Intents

    See Also:
    Constant Field Values

  • ACTION_SETTINGS

    public static final java.lang.String ACTION_SETTINGS
    Action name for intents to be displayed in Astrid's settings. By default, your application will be put into the category named by your application, but you can add a string meta-data with name "category" to override this.

    See Also:
    Constant Field Values

    BROADCAST_EVENT_STARTUP

    public static final java.lang.String BROADCAST_EVENT_STARTUP
    Action name for broadcast intent notifying add-ons that Astrid started up

    See Also:
    Constant Field Values

    BROADCAST_EVENT_REFRESH

    public static final java.lang.String BROADCAST_EVENT_REFRESH
    Action name for broadcast intent notifying Astrid task list to refresh

    See Also:
    Constant Field Values

    BROADCAST_EVENT_FLUSH_DETAILS

    public static final java.lang.String BROADCAST_EVENT_FLUSH_DETAILS
    Action name for broadcast intent notifying Astrid to clear detail cache because an event occurred that potentially affects all tasks (e.g. logging out of a sync provider). Use this call carefully, as loading details can degrade the performance of Astrid.

    See Also:
    Constant Field Values

    BROADCAST_EVENT_TASK_LIST_UPDATED

    public static final java.lang.String BROADCAST_EVENT_TASK_LIST_UPDATED
    Action name for broadcast intent notifying that task was created or title was changed
  • EXTRAS_TASK_ID id of the task

    See Also:
    Constant Field Values

  • BROADCAST_EVENT_TASK_COMPLETED

    public static final java.lang.String BROADCAST_EVENT_TASK_COMPLETED
    Action name for broadcast intent notifying that task was completed
  • EXTRAS_TASK_ID id of the task

    See Also:
    Constant Field Values

  • BROADCAST_EVENT_TASK_REPEATED

    public static final java.lang.String BROADCAST_EVENT_TASK_REPEATED
    Action name for broadcast intent notifying that task was created from repeating template
  • EXTRAS_TASK_ID id of the task
  • EXTRAS_OLD_DUE_DATE task old due date (could be 0)
  • EXTRAS_NEW_DUE_DATE task new due date (will not be 0)

    See Also:
    Constant Field Values
  • Constructor Detail

    AstridApiConstants

    public AstridApiConstants()