public class AmazonCustomerListReceiver
extends java.lang.Object
getInstance(Context)
method to access an instance.Modifier and Type | Method and Description |
---|---|
void |
addCustomerListEntries(int type,
java.util.List<AmazonCustomerListEntry> entries)
Adds a list of new entries to the customer's list.
|
void |
addCustomerListEntry(int type,
AmazonCustomerListEntry entry)
Adds a new list entry to the customer's list.
|
static AmazonCustomerListReceiver |
getInstance(android.content.Context context)
Returns an instance of the AmazonCustomerListReceiver to receive customer list updates.
|
void |
removeCustomerListEntries(int type,
java.util.List<AmazonCustomerListEntry> entries)
Removes a list of entries from the customer's list.
|
void |
removeCustomerListEntry(int type,
AmazonCustomerListEntry entry)
Removes a single entry from the customer's list.
|
void |
setCustomerList(int type,
int listStatus,
java.util.List<AmazonCustomerListEntry> entries)
Sets a customer managed list with a list of entries capable of paging.
|
void |
setCustomerList(int type,
java.util.List<AmazonCustomerListEntry> entries)
Sets a customer managed list with a list of entries.
|
public static AmazonCustomerListReceiver getInstance(android.content.Context context)
context
- The Android context object, used to bind to the receiver service.public void addCustomerListEntries(int type, java.util.List<AmazonCustomerListEntry> entries)
AmazonCustomerListType
for accepted types of customer lists.entries
- List of entries to be added to the list.type
- Type of list to perform the action on. See
AmazonCustomerListType
public void addCustomerListEntry(int type, AmazonCustomerListEntry entry)
AmazonCustomerListType
for accepted types of customer lists.entry
- Entry to be added to the list.type
- Type of list to perform the action on.
See AmazonCustomerListType
.public void setCustomerList(int type, int listStatus, java.util.List<AmazonCustomerListEntry> entries)
AmazonCustomerListType
for accepted types of customer lists.
Note that this will erase any existing state about the list.entries
- Complete list of entries to be set for the list.listStatus
- Indicates if this is the complete list or if more items will be sent as part of the list. See
AmazonSetListStatus
for more information and options.type
- Type of list to perform the action on.
See AmazonCustomerListType
.public void setCustomerList(int type, java.util.List<AmazonCustomerListEntry> entries)
AmazonCustomerListType
for accepted types of customer lists.
Note that this will erase any existing state about the list.entries
- Complete list of entries to be set for the list.type
- Type of list to perform the action on.
See AmazonCustomerListType
.public void removeCustomerListEntries(int type, java.util.List<AmazonCustomerListEntry> entries)
AmazonCustomerListType
for accepted types of customer lists.entries
- List of entries to be removed from the list.type
- Type of list to perform the action on.
See AmazonCustomerListType
.public void removeCustomerListEntry(int type, AmazonCustomerListEntry entry)
AmazonCustomerListType
for accepted types of customer lists.entry
- Entry to be removed from the list.type
- Type of list to perform the action on.
See AmazonCustomerListType
.