# Print output for @column tags ?> PurchaseHistoryResponseListener {% setvar book_path %}/reference/com/android/billingclient/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PurchaseHistoryResponseListener

public interface PurchaseHistoryResponseListener

com.android.billingclient.api.PurchaseHistoryResponseListener


Listener to a result of purchase history query.

Summary

Public methods

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

Called to notify that the query purchase history operation has finished.

Public methods

onPurchaseHistoryResponse

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

Called to notify that the query purchase history operation has finished.

Parameters
billingResult BillingResult: Result of the query.

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