|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PurchaseResponse.PurchaseRequestStatus>
com.amazon.inapp.purchasing.PurchaseResponse.PurchaseRequestStatus
public static enum PurchaseResponse.PurchaseRequestStatus
Indicates the result of a purchase operation initiated via
PurchasingManager.initiatePurchaseRequest(String)
.
Enum Constant Summary | |
---|---|
ALREADY_ENTITLED
Indicates that the customer already owns the provided SKU. |
|
FAILED
Indicates that the purchase failed for a reason outside your control. |
|
INVALID_SKU
Indicates that the SKU originally provided to the PurchasingManager.initiatePurchaseRequest(String)
method is not valid. |
|
SUCCESSFUL
Indicates that the purchase was successfully completed. |
Method Summary | |
---|---|
static PurchaseResponse.PurchaseRequestStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PurchaseResponse.PurchaseRequestStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final PurchaseResponse.PurchaseRequestStatus SUCCESSFUL
public static final PurchaseResponse.PurchaseRequestStatus FAILED
public static final PurchaseResponse.PurchaseRequestStatus INVALID_SKU
PurchasingManager.initiatePurchaseRequest(String)
method is not valid.
public static final PurchaseResponse.PurchaseRequestStatus ALREADY_ENTITLED
PurchasingManager.initiatePurchaseUpdatesRequest(Offset)
. Note that you will never receive this
error for consumable items, since they can be purchased an unlimited number of times.n
Method Detail |
---|
public static PurchaseResponse.PurchaseRequestStatus[] values()
for (PurchaseResponse.PurchaseRequestStatus c : PurchaseResponse.PurchaseRequestStatus.values()) System.out.println(c);
public static PurchaseResponse.PurchaseRequestStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |