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

ConsumeResponseListener

public interface ConsumeResponseListener

com.android.billingclient.api.ConsumeResponseListener


Callback that notifies when a consumption operation finishes.

Summary

Public methods

abstract void onConsumeResponse(int responseCode, String purchaseToken)

Called to notify that a consume operation has finished.

Public methods

onConsumeResponse

void onConsumeResponse (int responseCode, 
                String purchaseToken)

Called to notify that a consume operation has finished.

Parameters
responseCode int: The response code from BillingClient.BillingResponse set to report the result of consume operation.

purchaseToken String: The purchase token that was (or was to be) consumed.