# EvChargeState

Summary:[Constants](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#constants)\|[Methods](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#inhmethods)  

# EvChargeState

`
public

final

class
EvChargeState
`  
`

extends Object


``


`

|---|---------------------------------------------|
| java.lang.Object                               ||
| ↳ | android.car.hardware.property.EvChargeState |

<br />

*** ** * ** ***

Possible EV charge states of a vehicle.

Applications can use[CarPropertyManager.getProperty(int, int)](https://developer.android.com/reference/android/car/hardware/property/CarPropertyManager#getProperty(int,%20int))with[VehiclePropertyIds.EV_CHARGE_STATE](https://developer.android.com/reference/android/car/VehiclePropertyIds#EV_CHARGE_STATE)to query the vehicle's ignition charge state.

## Summary

|                                                                            ### Constants                                                                            ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [STATE_CHARGING](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_CHARGING) The vehicle is charging.                |
| `int` | [STATE_ERROR](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_ERROR) The vehicle is not charging due to an error.  |
| `int` | [STATE_FULLY_CHARGED](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_FULLY_CHARGED) The vehicle is fully charged. |
| `int` | [STATE_NOT_CHARGING](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_NOT_CHARGING) The vehicle is not charging.    |
| `int` | [STATE_UNKNOWN](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_UNKNOWN) The vehicle's EV charge state is unknown. |

|                                                                                                 ### Public methods                                                                                                  ||
|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static String` | ` `[toString](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#toString(int))`(int evChargeState) ` Gets a user-friendly representation of an EV charge state. |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||

## Constants

### STATE_CHARGING

```
public static final int STATE_CHARGING
```

The vehicle is charging.

<br />

Constant Value: 1 (0x00000001)  

### STATE_ERROR

```
public static final int STATE_ERROR
```

The vehicle is not charging due to an error.

<br />

Constant Value: 4 (0x00000004)  

### STATE_FULLY_CHARGED

```
public static final int STATE_FULLY_CHARGED
```

The vehicle is fully charged.

<br />

Constant Value: 2 (0x00000002)  

### STATE_NOT_CHARGING

```
public static final int STATE_NOT_CHARGING
```

The vehicle is not charging.

<br />

Constant Value: 3 (0x00000003)  

### STATE_UNKNOWN

```
public static final int STATE_UNKNOWN
```

The vehicle's EV charge state is unknown.

<br />

Constant Value: 0 (0x00000000)

## Public methods

### toString

```
public static String toString (int evChargeState)
```

Gets a user-friendly representation of an EV charge state.

<br />

|                                                                                                                                                                                                                                                                                                                          Parameters                                                                                                                                                                                                                                                                                                                          ||
|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `evChargeState` | `int`: Value is[STATE_UNKNOWN](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_UNKNOWN),[STATE_CHARGING](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_CHARGING),[STATE_FULLY_CHARGED](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_FULLY_CHARGED),[STATE_NOT_CHARGING](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_NOT_CHARGING), or[STATE_ERROR](https://developer.android.com/reference/android/car/hardware/property/EvChargeState#STATE_ERROR) <br /> |

|     Returns      ||
|----------|--------|
| `String` | <br /> |