# PurchaseClientStateListener

```
public interface PurchaseClientStateListener
```

```
com.gaa.sdk.iap.PurchaseClientStateListener
```

<br>

It is a listener for the connection setup process.

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

***

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

```
void onSetupFinished( iapResult)
```

It is called up to notify that the connection setup has completed.

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

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

```
void onServiceDisconnected()
```

It is called up to notify that connection has been cut.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://onestore-dev.gitbook.io/dev/eng/tools/billing/old-version/v19/one-store-iap-reference/interfaces/purchaseclientstatelistener.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
