java.lang.Object | |
↳ | com.google.android.gms.actions.ItemListIntents |
Constants for intents to create and modify item lists from a Search Action.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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(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.
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(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.
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.
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(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.
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(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.
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(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.
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".
Intent extra for specifying multiple items when creating a list with ACTION_CREATE_ITEM_LIST
as a string array. The individual values should
be specied according to EXTRA_ITEM_NAME
.
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
.
Intent extra specifying an optional name or title as a string describing what the list contains (e.g. "shopping" or "todo").
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.