# BillingClient.ConnectionState


```
@Retention(value = java.lang.annotation.RetentionPolicy.SOURCE)
public annotation BillingClient.ConnectionState
```

<br />

*** ** * ** ***

Connection state of billing client.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.ConnectionState#CLOSED() = 3` This client was already closed and shouldn't be used again. |
| `static final int` | `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.ConnectionState#CONNECTED() = 2` This client is currently connected to billing service. |
| `static final int` | `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.ConnectionState#CONNECTING() = 1` This client is currently in process of connecting to billing service. |
| `static final int` | `https://developer.android.com/reference/com/android/billingclient/api/BillingClient.ConnectionState#DISCONNECTED() = 0` This client was not yet connected to billing service or was already closed. |

## Constants

### CLOSED

```
public static final int CLOSED = 3
```

This client was already closed and shouldn't be used again.

### CONNECTED

```
public static final int CONNECTED = 2
```

This client is currently connected to billing service.

### CONNECTING

```
public static final int CONNECTING = 1
```

This client is currently in process of connecting to billing service.

### DISCONNECTED

```
public static final int DISCONNECTED = 0
```

This client was not yet connected to billing service or was already closed.