> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/cht/tools/billing/v21/references/interfaces/purchaseclientstatelistener.md).

# PurchaseClientStateListener

public interface PurchaseClientStateListener \
com.gaa.sdk.iap.PurchaseClientStateListener&#x20;

連接設置流程的listener。

### Public methods <a href="#id-cn-purchaseclientstatelistener-publicmethods" id="id-cn-purchaseclientstatelistener-publicmethods"></a>

***

#### onSetupFinished <a href="#id-cn-purchaseclientstatelistener-onsetupfinished" id="id-cn-purchaseclientstatelistener-onsetupfinished"></a>

void onSetupFinished([IapResult](https://onestore-dev.gitbook.io/dev/v/chi/tools/tools/v21/references/classes/iapresult) iapResult)&#x20;

通知連接設置流程完成時被調用。

| **Parameters:** |         |   |
| --------------- | ------- | - |
| iapResult       | 請求操作的结果 |   |

#### onServiceDisconnected <a href="#id-cn-purchaseclientstatelistener-onservicedisconnected" id="id-cn-purchaseclientstatelistener-onservicedisconnected"></a>

void onServiceDisconnected()&#x20;

通知連接中段時被調用。
