# EvRegenerativeBrakingState

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

# EvRegenerativeBrakingState

`
public

final

class
EvRegenerativeBrakingState
`  
`

extends Object


``


`

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

<br />

*** ** * ** ***

Possible EV regenerative braking 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_REGENERATIVE_BRAKING_STATE](https://developer.android.com/reference/android/car/VehiclePropertyIds#EV_REGENERATIVE_BRAKING_STATE)to query the vehicle's regenerative braking state.

## Summary

|                                                                                               ### Constants                                                                                               ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [STATE_DISABLED](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_DISABLED) The regenerative braking is disabled.                            |
| `int` | [STATE_FULLY_ENABLED](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_FULLY_ENABLED) The regenerative braking is fully enabled.             |
| `int` | [STATE_PARTIALLY_ENABLED](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_PARTIALLY_ENABLED) The regenerative braking is partially enabled. |
| `int` | [STATE_UNKNOWN](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_UNKNOWN) The vehicle's EV regenerative braking state is unknown.            |

|                                                                                                                     ### Public methods                                                                                                                      ||
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static String` | ` `[toString](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#toString(int))`(int evRegenerativeBrakingState) ` Gets a user-friendly representation of an EV regenerative braking 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_DISABLED

```
public static final int STATE_DISABLED
```

The regenerative braking is disabled.

<br />

Constant Value: 1 (0x00000001)  

### STATE_FULLY_ENABLED

```
public static final int STATE_FULLY_ENABLED
```

The regenerative braking is fully enabled.

<br />

Constant Value: 3 (0x00000003)  

### STATE_PARTIALLY_ENABLED

```
public static final int STATE_PARTIALLY_ENABLED
```

The regenerative braking is partially enabled.

<br />

Constant Value: 2 (0x00000002)  

### STATE_UNKNOWN

```
public static final int STATE_UNKNOWN
```

The vehicle's EV regenerative braking state is unknown.

<br />

Constant Value: 0 (0x00000000)

## Public methods

### toString

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

Gets a user-friendly representation of an EV regenerative braking state.

<br />

|                                                                                                                                                                                                                                                                                                        Parameters                                                                                                                                                                                                                                                                                                        ||
|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `evRegenerativeBrakingState` | `int`: Value is[STATE_UNKNOWN](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_UNKNOWN),[STATE_DISABLED](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_DISABLED),[STATE_PARTIALLY_ENABLED](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_PARTIALLY_ENABLED), or[STATE_FULLY_ENABLED](https://developer.android.com/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_FULLY_ENABLED) <br /> |

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