ItemListIntents

public class ItemListIntents


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

Summary

Constants

static final String
ACTION_ACCEPT_ITEM = "com.google.android.gms.actions.ACCEPT_ITEM"

Intent action for marking an existing list item complete.

static final String
ACTION_APPEND_ITEM_LIST = "com.google.android.gms.actions.APPEND_ITEM_LIST"

Intent action for appending to an existing item list.

static final String
ACTION_CREATE_ITEM_LIST = "com.google.android.gms.actions.CREATE_ITEM_LIST"

Intent action for creating an item list.

static final String
ACTION_DELETE_ITEM = "com.google.android.gms.actions.DELETE_ITEM"

Intent action for deleting an existing list item.

static final String
ACTION_DELETE_ITEM_LIST = "com.google.android.gms.actions.DELETE_ITEM_LIST"

Intent action for removing an item list.

static final String
ACTION_REJECT_ITEM = "com.google.android.gms.actions.REJECT_ITEM"

Intent action for marking an existing list item incomplete.

static final String
EXTRA_ITEM_NAME = "com.google.android.gms.actions.extra.ITEM_NAME"

Intent extra specifying the contents of a list item as a string.

static final String
EXTRA_ITEM_NAMES = "com.google.android.gms.actions.extra.ITEM_NAMES"

Intent extra for specifying multiple items when creating a list with ACTION_CREATE_ITEM_LIST as a string array.

static final String
EXTRA_ITEM_QUERY = "com.google.android.gms.actions.extra.ITEM_QUERY"

Intent extra specifying an unstructured query to identify a specific item as a string.

static final String
EXTRA_LIST_NAME = "com.google.android.gms.actions.extra.LIST_NAME"

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

static final String
EXTRA_LIST_QUERY = "com.google.android.gms.actions.extra.LIST_QUERY"

Intent extra specifying an unstructured query for an item list as a string.

Constants

ACTION_ACCEPT_ITEM

public static final String ACTION_ACCEPT_ITEM = "com.google.android.gms.actions.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 setData - 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.

ACTION_APPEND_ITEM_LIST

public static final String ACTION_APPEND_ITEM_LIST = "com.google.android.gms.actions.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 setData. 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.

ACTION_CREATE_ITEM_LIST

public static final String ACTION_CREATE_ITEM_LIST = "com.google.android.gms.actions.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.

ACTION_DELETE_ITEM

public static final String ACTION_DELETE_ITEM = "com.google.android.gms.actions.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 setData - 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.

ACTION_DELETE_ITEM_LIST

public static final String ACTION_DELETE_ITEM_LIST = "com.google.android.gms.actions.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 setData - 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.

ACTION_REJECT_ITEM

public static final String ACTION_REJECT_ITEM = "com.google.android.gms.actions.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 setData - 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.

EXTRA_ITEM_NAME

public static final String EXTRA_ITEM_NAME = "com.google.android.gms.actions.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".

EXTRA_ITEM_NAMES

public static final String EXTRA_ITEM_NAMES = "com.google.android.gms.actions.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.

EXTRA_ITEM_QUERY

public static final String EXTRA_ITEM_QUERY = "com.google.android.gms.actions.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.

EXTRA_LIST_NAME

public static final String EXTRA_LIST_NAME = "com.google.android.gms.actions.extra.LIST_NAME"

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

EXTRA_LIST_QUERY

public static final String EXTRA_LIST_QUERY = "com.google.android.gms.actions.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.