# PurchaseClient.ConnectionState

## PurchaseClient.ConnectionState

`public static @interface PurchaseClient.ConnectionState`\
`com.gaa.sdk.iap.PurchaseClient.ConnectionState`\
&#x20; \
PurchaseClient的连接状态值。

## Constants <a href="#purchaseclient.connectionstate-constants" id="purchaseclient.connectionstate-constants"></a>

***

### CLOSED <a href="#purchaseclient.connectionstate-closed" id="purchaseclient.connectionstate-closed"></a>

`int CLOSED`

服务连接已经关闭，不能再使用。

Constant Value: 3

### CONNECTED <a href="#purchaseclient.connectionstate-connected" id="purchaseclient.connectionstate-connected"></a>

`int CONNECTED`

目前已与服务连接。

Constant Value: 2

### CONNECTING <a href="#purchaseclient.connectionstate-connecting" id="purchaseclient.connectionstate-connecting"></a>

`int CONNECTING`

目前正在与服务连接。

Constant Value: 1

### DISCONNECTED <a href="#purchaseclient.connectionstate-disconnected" id="purchaseclient.connectionstate-disconnected"></a>

`int DISCONNECTED`

与服务的连接处于断开状态。

Constant Value: 0


---

# 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/chi/tools/billing/v21/references/annotations/purchaseclient.connectionstate.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.
