This reference document contains details, parameters, and usage of queryPurchases
, queryDetailsAsync
and queryPurchaseHistoryAsync
Purchase.PurchasesResult queryPurchases (String skuType)
The queryPurchases
method returns the details of the purchased items within your app.
Parameters | |
---|---|
SkuType | String: References to the type of SKU i) in-app ii) Subs |
Returns | |
---|---|
Purchase.PurchasesResult | Contains the list of i) Purchases and ii) Response code (int) |
void querySkuDetailsAsync (SkuDetailsParams params, SkuDetailsResponseListener listener)
The querySkuDetailsAsync
method is used to perform a network query in order to get the SKU details and to return the result in an asynchronous manner.
Parameters | Usage | Description |
---|---|---|
params | SkuDetailsParams | query params specific to the query request |
listener | SkuDetailsResponseListener | Assigned listener to capture the result of query operation. |
void queryPurchaseHistoryAsync (String skuType, PurchaseHistoryResponseListener listener)
ThequeryPurchaseHistoryAsync
method is used to query for the most recent purchases by the user. It returns the purchase list, including the ones that are expired, consumed, or cancelled.
Parameters | |
---|---|
skuType | String: The type of SKU as listed within BillingClient.SkuType |
listener | PurchaseHistoryResponseListener: Asynchronous response listener |
Document Rev. 1.0