public class Inventory extends Object
IabHelper.queryInventory(boolean, java.util.List<java.lang.String>).| Modifier and Type | Method and Description |
|---|---|
void |
erasePurchase(String sku)
Erase a purchase (locally) from the inventory, given its product ID.
|
List<String> |
getAllOwnedSkus()
Returns a list of all owned product IDs.
|
List<String> |
getAllOwnedSkus(String itemType)
Returns a list of all owned product IDs of a given type
|
List<Purchase> |
getAllPurchases()
Returns a list of all purchases.
|
Purchase |
getPurchase(String sku)
Returns purchase information for a given product, or null if there is no purchase.
|
SkuDetails |
getSkuDetails(String sku)
Returns the listing details for an in-app product.
|
boolean |
hasDetails(String sku)
Return whether or not details about the given product are available.
|
boolean |
hasPurchase(String sku)
Returns whether or not there exists a purchase of the given product.
|
public SkuDetails getSkuDetails(String sku)
public Purchase getPurchase(String sku)
public boolean hasPurchase(String sku)
public boolean hasDetails(String sku)
public void erasePurchase(String sku)
public List<String> getAllOwnedSkus(String itemType)
Copyright © 2016 Creative Mobile. All rights reserved.