ItemListIntents

public class ItemListIntents extends Object

Constants for intents to create and modify item lists from a Search Action.

Constant Summary

String ACTION_ACCEPT_ITEM Intent action for marking an existing list item complete.
String ACTION_APPEND_ITEM_LIST Intent action for appending to an existing item list.
String ACTION_CREATE_ITEM_LIST Intent action for creating an item list.
String ACTION_DELETE_ITEM Intent action for deleting an existing list item.
String ACTION_DELETE_ITEM_LIST Intent action for removing an item list.
String ACTION_REJECT_ITEM Intent action for marking an existing list item incomplete.
String EXTRA_ITEM_NAME Intent extra specifying the contents of a list item as a string.
String EXTRA_ITEM_NAMES Intent extra for specifying multiple items when creating a list with ACTION_CREATE_ITEM_LIST as a string array.
String EXTRA_ITEM_QUERY Intent extra specifying an unstructured query to identify a specific item as a string.
String EXTRA_LIST_NAME Intent extra specifying an optional name or title as a string describing what the list contains (e.g.
String EXTRA_LIST_QUERY Intent extra specifying an unstructured query for an item list as a string.

Inherited Method Summary

Constants

public static final String ACTION_ACCEPT_ITEM

Intent action for marking an existing list item complete. The intent can use extras to specify the item EXTRA_ITEM_QUERY (e.g. "buy eggs") and the list with EXTRA_LIST_QUERY (e.g. "todo"). Alternatively the item can be specified using Intent.setData(Uri) - the intent data will always be preferred over using EXTRA_ITEM_QUERY. If the item is ambiguous, the activity MUST ask the user to disambiguate.

The activity MUST verify the operation with the user before committing the change.

Constant Value: "com.google.android.gms.actions.ACCEPT_ITEM"

public static final String ACTION_APPEND_ITEM_LIST

Intent action for appending to an existing item list. The intent should include an extra to specify the list to append with EXTRA_LIST_QUERY or specify the list with Intent.setData(Uri). If both are specified, the intent data will be preferred. If the name is ambiguous, the activity MUST ask the user to disambiguate.

The intent can optionally include an extra specifying the item EXTRA_ITEM_NAME to add to the list. If the item is not specified, the activity should present a UI for the item to add.

The activity MUST verify the operation with the user before committing the change.

Constant Value: "com.google.android.gms.actions.APPEND_ITEM_LIST"

public static final String ACTION_CREATE_ITEM_LIST

Intent action for creating an item list. The intent can include optional extras to specify the list name EXTRA_LIST_NAME and the initial list of items EXTRA_ITEM_NAMES. For example, a shopping list might have a list name of "shopping list" and item names of "ham" and "eggs".

The activity MUST verify the operation with the user before committing the change.

Constant Value: "com.google.android.gms.actions.CREATE_ITEM_LIST"

public static final String ACTION_DELETE_ITEM

Intent action for deleting an existing list item. The intent can use extras to specify the item EXTRA_ITEM_QUERY (e.g. "buy eggs") and the list with EXTRA_LIST_QUERY (e.g. "todo"). Alternatively the item can be specified using Intent.setData(Uri) - the intent data will always be preferred over using EXTRA_ITEM_QUERY. If the item is ambiguous, the activity MUST ask the user to disambiguate.

The activity MUST verify the operation with the user before committing the change.

Constant Value: "com.google.android.gms.actions.DELETE_ITEM"

public static final String ACTION_DELETE_ITEM_LIST

Intent action for removing an item list. The intent can include an optional extra to specify a list query EXTRA_LIST_QUERY that is used to identify the note to be removed. For example if the query is "shopping list" and there are two potentially matching lists "food shopping list" and "clothes shopping list" then both should be presented.

The list to be deleted can also be specified with Intent.setData(Uri) - the intent data will be preferred if EXTRA_LIST_QUERY is also specified.

The activity MUST verify the operation with the user before committing the change.

Constant Value: "com.google.android.gms.actions.DELETE_ITEM_LIST"

public static final String ACTION_REJECT_ITEM

Intent action for marking an existing list item incomplete. The intent can use extras to specify the item EXTRA_ITEM_QUERY (e.g. "buy eggs") and the list with EXTRA_LIST_QUERY (e.g. "todo"). Alternatively the item can be specified using Intent.setData(Uri) - the intent data will always be preferred over using EXTRA_ITEM_QUERY. If the item is ambiguous, the activity MUST ask the user to disambiguate.

The activity MUST verify the operation with the user before committing the change.

Constant Value: "com.google.android.gms.actions.REJECT_ITEM"

public static final String EXTRA_ITEM_NAME

Intent extra specifying the contents of a list item as a string. For example in a shopping list, the item names might be "eggs" and "ham".

Constant Value: "com.google.android.gms.actions.extra.ITEM_NAME"

public static final String EXTRA_ITEM_NAMES

Intent extra for specifying multiple items when creating a list with ACTION_CREATE_ITEM_LIST as a string array. The individual values should be specified according to EXTRA_ITEM_NAME.

Constant Value: "com.google.android.gms.actions.extra.ITEM_NAMES"

public static final String EXTRA_ITEM_QUERY

Intent extra specifying an unstructured query to identify a specific item as a string. The query should be matched against the name provided in EXTRA_ITEM_NAME.

Constant Value: "com.google.android.gms.actions.extra.ITEM_QUERY"

public static final String EXTRA_LIST_NAME

Intent extra specifying an optional name or title as a string describing what the list contains (e.g. "shopping" or "todo").

Constant Value: "com.google.android.gms.actions.extra.LIST_NAME"

public static final String EXTRA_LIST_QUERY

Intent extra specifying an unstructured query for an item list as a string. This could search the list title or the items in the list to find a match, although matching the title should be preferred.

Constant Value: "com.google.android.gms.actions.extra.LIST_QUERY"