public interface PurchasesUpdatedListener
| Modifier and Type | Method and Description |
|---|---|
void |
onPurchasesUpdated(BillingResult billingResult,
List<Purchase> purchases)
Implement this method to get notifications for purchases updates.
|
void onPurchasesUpdated(BillingResult billingResult, @Nullable List<Purchase> purchases)
Warning! All purchases reported here must either be consumed or acknowledged. Failure
to either consume (via BillingClient.consumeAsync(com.android.billingclient.api.ConsumeParams, com.android.billingclient.api.ConsumeResponseListener)) or acknowledge (via BillingClient.acknowledgePurchase(com.android.billingclient.api.AcknowledgePurchaseParams, com.android.billingclient.api.AcknowledgePurchaseResponseListener)) a purchase will result in that purchase being refunded.
Please refer to
https://developer.android.com/google/play/billing/billing_library_overview#acknowledge for more
details.
billingResult - BillingResult of the update.purchases - List of updated purchases if present.