# EvStatus

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/hardware/info/EvStatus.java+class:androidx.car.app.hardware.info.EvStatus) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.2.0)

*** ** * ** ***


```
@CarProtocol
@ExperimentalCarApi
public class EvStatus
```

<br />

*** ** * ** ***

Information about EV car port status

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/car/app/hardware/info/EvStatus.Builder` A builder of `https://developer.android.com/reference/androidx/car/app/hardware/info/EvStatus`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/car/app/hardware/info/EvStatus#equals(java.lang.Object)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/Object.html other)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue<https://developer.android.com/reference/java/lang/Boolean.html>` | `https://developer.android.com/reference/androidx/car/app/hardware/info/EvStatus#getEvChargePortConnected()()` Returns a `https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue` to indicate if the EV charge port is connected. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue<https://developer.android.com/reference/java/lang/Boolean.html>` | `https://developer.android.com/reference/androidx/car/app/hardware/info/EvStatus#getEvChargePortOpen()()` Returns a `https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue` to indicate if the EV charge port is open. |
| `int` | `https://developer.android.com/reference/androidx/car/app/hardware/info/EvStatus#hashCode()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/car/app/hardware/info/EvStatus#toString()()` |

## Public methods

### equals

```
public boolean equals(@Nullable Object other)
```

### getEvChargePortConnected

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.2.0)

```
public @NonNull CarValue<Boolean> getEvChargePortConnected()
```

Returns a `https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue` to indicate if the EV charge port is connected.

### getEvChargePortOpen

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.2.0)

```
public @NonNull CarValue<Boolean> getEvChargePortOpen()
```

Returns a `https://developer.android.com/reference/androidx/car/app/hardware/common/CarValue` to indicate if the EV charge port is open.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```