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

# 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
