Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

PurchaseHistoryResponseListener

public interface PurchaseHistoryResponseListener

com.android.billingclient.api.PurchaseHistoryResponseListener


Listener to a result of purchases history query.

Summary

Public methods

abstract void onPurchaseHistoryResponse(BillingResult billingResult, List<PurchaseHistoryRecord> purchaseHistoryRecordList)

Called to notify that purchase history fetch operation has finished.

Public methods

onPurchaseHistoryResponse

void onPurchaseHistoryResponse (BillingResult billingResult, 
                List<PurchaseHistoryRecord> purchaseHistoryRecordList)

Called to notify that purchase history fetch operation has finished.

Parameters
billingResult BillingResult: BillingResult of the query.

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