ExteriorDimensions
@CarProtocol
@RequiresCarApi(value = 7)
class ExteriorDimensions
Information about the vehicle's exterior dimensions reported in millimeters.
Summary
Constants |
|
|---|---|
const Int |
The index for vehicle curb to curb turning radius in millimeters. |
const Int |
HEIGHT_INDEX = 0The index for vehicle height in millimeters. |
const Int |
LENGTH_INDEX = 1The index for vehicle length in millimeters. |
const Int |
The index for vehicle front track width in millimeters. |
const Int |
The index for vehicle rear track width in millimeters. |
const Int |
WHEEL_BASE_INDEX = 4The index for vehicle wheel base in millimeters. |
const Int |
The index for vehicle width including mirrors in millimeters. |
const Int |
WIDTH_INDEX = 2The index for vehicle width in millimeters. |
Public constructors |
|---|
|
Creates a default ExteriorDimensions instance that report "unknown" as the value. |
ExteriorDimensions(exteriorDimensions: CarValue<Array<Int!>!>)Creates an ExteriorDimensions instance with the given car value. |
Public functions |
|
|---|---|
Boolean |
|
CarValue<Array<Int!>!> |
Returns the vehicle's exterior dimensions in millimeters. |
Int |
hashCode() |
String |
toString() |
Constants
CURB_TO_CURB_TURNING_RADIUS_INDEX
const val CURB_TO_CURB_TURNING_RADIUS_INDEX = 7: Int
The index for vehicle curb to curb turning radius in millimeters.
HEIGHT_INDEX
const val HEIGHT_INDEX = 0: Int
The index for vehicle height in millimeters.
LENGTH_INDEX
const val LENGTH_INDEX = 1: Int
The index for vehicle length in millimeters.
TRACK_WIDTH_FRONT_INDEX
const val TRACK_WIDTH_FRONT_INDEX = 5: Int
The index for vehicle front track width in millimeters.
TRACK_WIDTH_REAR_INDEX
const val TRACK_WIDTH_REAR_INDEX = 6: Int
The index for vehicle rear track width in millimeters.
WHEEL_BASE_INDEX
const val WHEEL_BASE_INDEX = 4: Int
The index for vehicle wheel base in millimeters.
WIDTH_INCLUDING_MIRRORS_INDEX
const val WIDTH_INCLUDING_MIRRORS_INDEX = 3: Int
The index for vehicle width including mirrors in millimeters.
WIDTH_INDEX
const val WIDTH_INDEX = 2: Int
The index for vehicle width in millimeters.
Public constructors
ExteriorDimensions
ExteriorDimensions()
Creates a default ExteriorDimensions instance that report "unknown" as the value.
ExteriorDimensions
ExteriorDimensions(exteriorDimensions: CarValue<Array<Int!>!>)
Creates an ExteriorDimensions instance with the given car value.
Public functions
getExteriorDimensions
fun getExteriorDimensions(): CarValue<Array<Int!>!>
Returns the vehicle's exterior dimensions in millimeters. This information is reported as-is from the manufacturer and is keyed off of the indexes defined in this class, as documented in VehiclePropertyIds#INFO_EXTERIOR_DIMENSIONS.