EvChargeState

public final class EvChargeState
extends Object

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


Possible EV charge states of a vehicle.

Applications can use CarPropertyManager.getProperty(int, int) with VehiclePropertyIds.EV_CHARGE_STATE to query the vehicle's ignition charge state.

Summary

Constants

int STATE_CHARGING

The vehicle is charging.

int STATE_ERROR

The vehicle is not charging due to an error.

int STATE_FULLY_CHARGED

The vehicle is fully charged.

int STATE_NOT_CHARGING

The vehicle is not charging.

int STATE_UNKNOWN

The vehicle's EV charge state is unknown.

Public methods

static String toString(int evChargeState)

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

Inherited methods

Constants

STATE_CHARGING

Added in API level 34
public static final int STATE_CHARGING

The vehicle is charging.

Constant Value: 1 (0x00000001)

STATE_ERROR

Added in API level 34
public static final int STATE_ERROR

The vehicle is not charging due to an error.

Constant Value: 4 (0x00000004)

STATE_FULLY_CHARGED

Added in API level 34
public static final int STATE_FULLY_CHARGED

The vehicle is fully charged.

Constant Value: 2 (0x00000002)

STATE_NOT_CHARGING

Added in API level 34
public static final int STATE_NOT_CHARGING

The vehicle is not charging.

Constant Value: 3 (0x00000003)

STATE_UNKNOWN

Added in API level 34
public static final int STATE_UNKNOWN

The vehicle's EV charge state is unknown.

Constant Value: 0 (0x00000000)

Public methods

toString

Added in API level 34
public static String toString (int evChargeState)

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

Parameters
evChargeState int: Value is STATE_UNKNOWN, STATE_CHARGING, STATE_FULLY_CHARGED, STATE_NOT_CHARGING, or STATE_ERROR

Returns
String