EvRegenerativeBrakingState

public final class EvRegenerativeBrakingState
extends Object

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


Possible EV regenerative braking states of a vehicle.

Applications can use CarPropertyManager.getProperty(int, int) with VehiclePropertyIds.EV_REGENERATIVE_BRAKING_STATE to query the vehicle's regenerative braking state.

Summary

Constants

int STATE_DISABLED

The regenerative braking is disabled.

int STATE_FULLY_ENABLED

The regenerative braking is fully enabled.

int STATE_PARTIALLY_ENABLED

The regenerative braking is partially enabled.

int STATE_UNKNOWN

The vehicle's EV regenerative braking state is unknown.

Public methods

static String toString(int evRegenerativeBrakingState)

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

Inherited methods

Constants

STATE_DISABLED

Added in API level 34
public static final int STATE_DISABLED

The regenerative braking is disabled.

Constant Value: 1 (0x00000001)

STATE_FULLY_ENABLED

Added in API level 34
public static final int STATE_FULLY_ENABLED

The regenerative braking is fully enabled.

Constant Value: 3 (0x00000003)

STATE_PARTIALLY_ENABLED

Added in API level 34
public static final int STATE_PARTIALLY_ENABLED

The regenerative braking is partially enabled.

Constant Value: 2 (0x00000002)

STATE_UNKNOWN

Added in API level 34
public static final int STATE_UNKNOWN

The vehicle's EV regenerative braking state is unknown.

Constant Value: 0 (0x00000000)

Public methods

toString

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

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

Parameters
evRegenerativeBrakingState int: Value is STATE_UNKNOWN, STATE_DISABLED, STATE_PARTIALLY_ENABLED, or STATE_FULLY_ENABLED

Returns
String