Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

PurchaseHistoryResponseListener

public interface PurchaseHistoryResponseListener

com.android.billingclient.api.PurchaseHistoryResponseListener


Listener to a result of purchases history query.

Summary

Public methods

abstract void onPurchaseHistoryResponse(int responseCode, List<Purchase> purchasesList)

Called to notify that purchase history fetch operation has finished.

Public methods

onPurchaseHistoryResponse

void onPurchaseHistoryResponse (int responseCode, 
                List<Purchase> purchasesList)

Called to notify that purchase history fetch operation has finished.

Parameters
responseCode int: Response code of the query.

purchasesList List: List of purchases (even if that purchase is expired, canceled, or consumed - up to 1 per each SKU) or null with corresponding BillingClient.BillingResponse responseCode if purchase history was not queried successfully.