> 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/eng/tools/billing/v21/references/interfaces/purchaseclientstatelistener.md).

# PurchaseClientStateListener

public interface PurchaseClientStateListener\
com.gaa.sdk.iap.PurchaseClientStateListener

\
A listener for the connection setting process.

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

***

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

void onSetupFinished(IapResult)\
Called to notify when the connection setting has been completed.

| **Parameters:** |                           |
| --------------- | ------------------------- |
| iapResult       | Results of requested work |

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

void onServiceDisconnected()\
It is called to notify when there has been a disconnection.
