이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

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.