Stay organized with collections
Save and categorize content based on your preferences.
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
Public methods |
static
String
|
toString(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.
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-17 UTC."],[],[],null,["# EvRegenerativeBrakingState\n\nSummary: [Constants](#constants) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nEvRegenerativeBrakingState\n==========================\n\n\n`\npublic\n\nfinal\n\nclass\nEvRegenerativeBrakingState\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | android.car.hardware.property.EvRegenerativeBrakingState |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nPossible EV regenerative braking states of a vehicle.\n\nApplications can use [CarPropertyManager.getProperty(int, int)](/reference/android/car/hardware/property/CarPropertyManager#getProperty(int,%20int)) with [VehiclePropertyIds.EV_REGENERATIVE_BRAKING_STATE](/reference/android/car/VehiclePropertyIds#EV_REGENERATIVE_BRAKING_STATE) to query the\nvehicle's regenerative braking state.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [STATE_DISABLED](/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_DISABLED) The regenerative braking is disabled. |\n| `int` | [STATE_FULLY_ENABLED](/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_FULLY_ENABLED) The regenerative braking is fully enabled. |\n| `int` | [STATE_PARTIALLY_ENABLED](/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_PARTIALLY_ENABLED) The regenerative braking is partially enabled. |\n| `int` | [STATE_UNKNOWN](/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_UNKNOWN) The vehicle's EV regenerative braking state is unknown. |\n\n| ### Public methods ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static String` | ` `[toString](/reference/android/car/hardware/property/EvRegenerativeBrakingState#toString(int))`(int evRegenerativeBrakingState) ` Gets a user-friendly representation of an EV regenerative braking state. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` 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() ` | ||\n\nConstants\n---------\n\n### STATE_DISABLED\n\n```\npublic static final int STATE_DISABLED\n```\n\nThe regenerative braking is disabled.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n### STATE_FULLY_ENABLED\n\n```\npublic static final int STATE_FULLY_ENABLED\n```\n\nThe regenerative braking is fully enabled.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\n### STATE_PARTIALLY_ENABLED\n\n```\npublic static final int STATE_PARTIALLY_ENABLED\n```\n\nThe regenerative braking is partially enabled.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### STATE_UNKNOWN\n\n```\npublic static final int STATE_UNKNOWN\n```\n\nThe vehicle's EV regenerative braking state is unknown.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\nPublic methods\n--------------\n\n### toString\n\n```\npublic static String toString (int evRegenerativeBrakingState)\n```\n\nGets a user-friendly representation of an EV regenerative braking state.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `evRegenerativeBrakingState` | `int`: Value is [STATE_UNKNOWN](/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_UNKNOWN), [STATE_DISABLED](/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_DISABLED), [STATE_PARTIALLY_ENABLED](/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_PARTIALLY_ENABLED), or [STATE_FULLY_ENABLED](/reference/android/car/hardware/property/EvRegenerativeBrakingState#STATE_FULLY_ENABLED) \u003cbr /\u003e |\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |"]]