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_DISABLEDThe regenerative braking is disabled. | 
| int | STATE_FULLY_ENABLEDThe regenerative braking is fully enabled. | 
| int | STATE_PARTIALLY_ENABLEDThe regenerative braking is partially enabled. | 
| int | STATE_UNKNOWNThe 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
public static final int STATE_DISABLED
The regenerative braking is disabled.
Constant Value: 1 (0x00000001)
STATE_FULLY_ENABLED
public static final int STATE_FULLY_ENABLED
The regenerative braking is fully enabled.
Constant Value: 3 (0x00000003)
STATE_PARTIALLY_ENABLED
public static final int STATE_PARTIALLY_ENABLED
The regenerative braking is partially enabled.
Constant Value: 2 (0x00000002)
STATE_UNKNOWN
public static final int STATE_UNKNOWN
The vehicle's EV regenerative braking state is unknown.
Constant Value: 0 (0x00000000)
Public methods
toString
public static String toString (int evRegenerativeBrakingState)
Gets a user-friendly representation of an EV regenerative braking state.
| Parameters | |
|---|---|
| evRegenerativeBrakingState | int: Value isSTATE_UNKNOWN,STATE_DISABLED,STATE_PARTIALLY_ENABLED, orSTATE_FULLY_ENABLED | 
| Returns | |
|---|---|
| String | |
