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

BillingClientStateListener

public interface BillingClientStateListener

com.android.billingclient.api.BillingClientStateListener


Callback for setup process. This listener's onBillingSetupFinished(BillingResult) 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(BillingResult) when billing service is next running and setup is complete.

abstract void onBillingSetupFinished(BillingResult billingResult)

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(BillingResult) when billing service is next running and setup is complete.

onBillingSetupFinished

void onBillingSetupFinished (BillingResult billingResult)

Called to notify that setup is complete.

Parameters
billingResult BillingResult: The BillingResult which returns the status of the setup process.