public class Inventory
extends java.lang.Object
IabHelper.queryInventory()
.构造器和说明 |
---|
Inventory() |
限定符和类型 | 方法和说明 |
---|---|
void |
addPurchase(Purchase p) |
void |
addSkuDetails(SkuDetailsProxy d) |
void |
erasePurchase(java.lang.String sku)
Erase a purchase (locally) from the inventory, given its product ID.
|
java.util.List<java.lang.String> |
getAllOwnedSkus()
Returns a list of all owned product IDs.
|
java.util.List<java.lang.String> |
getAllOwnedSkus(java.lang.String itemType)
Returns a list of all owned product IDs of a given type
|
java.util.List<Purchase> |
getAllPurchases()
Returns a list of all purchases.
|
Purchase |
getPurchase(java.lang.String sku)
Returns purchase information for a given product, or null if there is no purchase.
|
SkuDetailsProxy |
getSkuDetails(java.lang.String sku)
Returns the listing details for an in-app product.
|
boolean |
hasDetails(java.lang.String sku)
Return whether or not details about the given product are available.
|
boolean |
hasPurchase(java.lang.String sku)
Returns whether or not there exists a purchase of the given product.
|
public SkuDetailsProxy getSkuDetails(java.lang.String sku)
public Purchase getPurchase(java.lang.String sku)
public boolean hasPurchase(java.lang.String sku)
public boolean hasDetails(java.lang.String sku)
public void erasePurchase(java.lang.String sku)
public java.util.List<java.lang.String> getAllOwnedSkus()
public java.util.List<java.lang.String> getAllOwnedSkus(java.lang.String itemType)
public java.util.List<Purchase> getAllPurchases()
public void addSkuDetails(SkuDetailsProxy d)
public void addPurchase(Purchase p)