BillingClientStateListener

public interface BillingClientStateListener

com.android.billingclient.api.BillingClientStateListener


Callback for setup process. This listener's onBillingSetupFinished(int) method is called when the setup process is complete.

Summary

Public methods

abstract void onBillingServiceDisconnected()

Called to notify that connection to billing service was lost

Note: This does not remove billing service connection itself - this binding to the service will remain active, and you will receive a call to onBillingSetupFinished(int) when billing service is next running and setup is complete.

abstract void onBillingSetupFinished(int responseCode)

Called to notify that setup is complete.

Public methods

onBillingServiceDisconnected

void onBillingServiceDisconnected ()

Called to notify that connection to billing service was lost

Note: This does not remove billing service connection itself - this binding to the service will remain active, and you will receive a call to onBillingSetupFinished(int) when billing service is next running and setup is complete.

onBillingSetupFinished

void onBillingSetupFinished (int responseCode)

Called to notify that setup is complete.

Parameters
responseCode int: The response code from BillingClient.BillingResponse which returns the status of the setup process.