PurchasesUpdatedListener
public
interface
PurchasesUpdatedListener
com.android.billingclient.api.PurchasesUpdatedListener |
Listener interface for purchase updates which happen when, for example, the user buys something within the app or by initiating a purchase from Google Play Store.
Summary
Public methods | |
---|---|
abstract
void
|
onPurchasesUpdated(BillingResult billingResult, List<Purchase> purchases)
Implement this method to get notifications for purchases updates. |
Public methods
onPurchasesUpdated
void onPurchasesUpdated (BillingResult billingResult, List<Purchase> purchases)
Implement this method to get notifications for purchases updates. Both purchases initiated by your app and the ones initiated outside of your app will be reported here.
Warning! All purchases reported here must either be consumed or acknowledged. Failure
to either consume (via consumeAsync(ConsumeParams, ConsumeResponseListener)
) or acknowledge (via acknowledgePurchase(AcknowledgePurchaseParams, 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.
Parameters | |
---|---|
billingResult |
BillingResult : BillingResult of the update. |
purchases |
List : List of updated purchases if present.
|
Annotations
Interfaces
Classes
- AcknowledgePurchaseParams
- AcknowledgePurchaseParams.Builder
- BillingClient
- BillingClient.Builder
- BillingFlowParams
- BillingFlowParams.Builder
- BillingResult
- BillingResult.Builder
- ConsumeParams
- ConsumeParams.Builder
- PriceChangeFlowParams
- PriceChangeFlowParams.Builder
- ProxyBillingActivity
- Purchase
- Purchase.PurchasesResult
- PurchaseHistoryRecord
- RewardLoadParams
- RewardLoadParams.Builder
- SkuDetails
- SkuDetails.SkuDetailsResult
- SkuDetailsParams
- SkuDetailsParams.Builder