PurchasesUpdatedListener
A callback class that serves as a listener for the Purchases made with the AptoideBillingClient.
Public Methods
onPurchasesUpdated
void onPurchasesUpdated(BillingResult billingResult, List<Purchase> purchases)
Invoked to notify about purchases updates. The updates about purchases received in this listener are for both purchases initiated by your application and the ones initiated outside of it.
🚧
Purchases received in this listener must be consumed
The failure to consume a Purchase when receiving it in this method will result in a refund to the User after 48 hours. Check more about it in the SDK Implementation guide.
Parameters
| Name | Type | Description |
|---|---|---|
| billingResult | BillingResult | Billing result of type BillingResult of the response received. |
| purchases | List<Purchase> | List containing the Purchases that got updated. |