public class AmazonEntitlementReceiver
extends java.lang.Object
getInstance(Context)
method to access an instance.Modifier and Type | Method and Description |
---|---|
void |
addContentEntitlement(AmazonContentEntitlement entitlement)
Adds a single content entitlements (e.g., purchase, rental, etc.).
|
void |
addContentEntitlements(java.util.List<AmazonContentEntitlement> entitlements)
Adds a list of content entitlements (e.g., purchase, rental, etc.).
|
void |
addSubscription(AmazonSubscriptionEntitlement subscription)
Adds a single entitled subscription.
|
void |
addSubscriptions(java.util.List<AmazonSubscriptionEntitlement> subscriptions)
Adds a list of entitled subscriptions.
|
void |
clearAllEntitlements()
Clears all entitlement for the customer.
|
static AmazonEntitlementReceiver |
getInstance(android.content.Context context)
Returns an instance of the AmazonEntitlementReceiver to receive customer entitlement updates.
|
void |
removeContentEntitlement(AmazonContentEntitlement entitlement)
Removes a single content entitlement (e.g., purchase, rental, etc.).
|
void |
removeContentEntitlements(java.util.List<AmazonContentEntitlement> entitlements)
Removes a list of content entitlements (e.g., purchase, rental, etc.).
|
void |
removeSubscription(AmazonSubscriptionEntitlement subscription)
Removes a single subscription which is no longer entitled.
|
void |
removeSubscriptions(java.util.List<AmazonSubscriptionEntitlement> subscriptions)
Removes a list of subscriptions which are no longer entitled.
|
void |
setContentEntitlements(int listStatus,
java.util.List<AmazonContentEntitlement> entitlements)
Sets the list of content entitlements (e.g., purchase, rental, etc.) with paging capability.
|
void |
setContentEntitlements(java.util.List<AmazonContentEntitlement> entitlements)
Sets the list of content entitlements (e.g., purchase, rental, etc.).
|
void |
setSubscriptions(int listStatus,
java.util.List<AmazonSubscriptionEntitlement> subscriptions)
Sets the list of all entitled subscriptions with paging capability.
|
void |
setSubscriptions(java.util.List<AmazonSubscriptionEntitlement> subscriptions)
Sets the list of all entitled subscriptions.
|
public static AmazonEntitlementReceiver getInstance(android.content.Context context)
context
- The Android context object, used to bind to the receiver service.public void addContentEntitlements(java.util.List<AmazonContentEntitlement> entitlements)
entitlements
- List of entitlements to be added.public void addContentEntitlement(AmazonContentEntitlement entitlement)
entitlement
- Entitlement to be added.public void setContentEntitlements(int listStatus, java.util.List<AmazonContentEntitlement> entitlements)
entitlements
- Complete list of entitlements to be set.listStatus
- indicates if the list is complete or has more items remaining to support sending data in pages. See
AmazonSetListStatus
for more information and options.public void setContentEntitlements(java.util.List<AmazonContentEntitlement> entitlements)
setContentEntitlements(int, List)
.entitlements
- Complete list of entitlements to be set.public void removeContentEntitlements(java.util.List<AmazonContentEntitlement> entitlements)
entitlements
- List of entitlements to be removed.public void removeContentEntitlement(AmazonContentEntitlement entitlement)
entitlement
- Entitlement to be removed.public void addSubscriptions(java.util.List<AmazonSubscriptionEntitlement> subscriptions)
subscriptions
- List of subscriptions to be added.public void addSubscription(AmazonSubscriptionEntitlement subscription)
subscription
- Subscription to be added.public void setSubscriptions(int listStatus, java.util.List<AmazonSubscriptionEntitlement> subscriptions)
listStatus
- indicates if the list is complete or has more items remaining to support sending data in pages. See
AmazonSetListStatus
for more information and
options.subscriptions
- Complete list of subscriptions the customer is entitled to.public void setSubscriptions(java.util.List<AmazonSubscriptionEntitlement> subscriptions)
setSubscriptions(int, List)
.subscriptions
- Complete list of subscriptions the customer is entitled to.public void removeSubscriptions(java.util.List<AmazonSubscriptionEntitlement> subscriptions)
subscriptions
- List of subscriptions to be removed.public void removeSubscription(AmazonSubscriptionEntitlement subscription)
subscription
- Subscription to be removed.public void clearAllEntitlements()