# ExteriorDimensions

# ExteriorDimensions

Artifact:[androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app)  
[View Source](https://cs.android.com/search?q=file:androidx/car/app/hardware/info/ExteriorDimensions.java+class:androidx.car.app.hardware.info.ExteriorDimensions)  
Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/hardware/info/ExteriorDimensions "View this page in Java")

<br />

```
@CarProtocol
@RequiresCarApi(value = 7)
class ExteriorDimensions
```

<br />

*** ** * ** ***

Information about the vehicle's exterior dimensions reported in millimeters.

## Summary

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [CURB_TO_CURB_TURNING_RADIUS_INDEX](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#CURB_TO_CURB_TURNING_RADIUS_INDEX())` = 7` The index for vehicle curb to curb turning radius in millimeters. |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [HEIGHT_INDEX](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#HEIGHT_INDEX())` = 0` The index for vehicle height in millimeters.                                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [LENGTH_INDEX](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#LENGTH_INDEX())` = 1` The index for vehicle length in millimeters.                                                                |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TRACK_WIDTH_FRONT_INDEX](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#TRACK_WIDTH_FRONT_INDEX())` = 5` The index for vehicle front track width in millimeters.                               |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TRACK_WIDTH_REAR_INDEX](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#TRACK_WIDTH_REAR_INDEX())` = 6` The index for vehicle rear track width in millimeters.                                  |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [WHEEL_BASE_INDEX](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#WHEEL_BASE_INDEX())` = 4` The index for vehicle wheel base in millimeters.                                                    |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [WIDTH_INCLUDING_MIRRORS_INDEX](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#WIDTH_INCLUDING_MIRRORS_INDEX())` = 3` The index for vehicle width including mirrors in millimeters.             |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [WIDTH_INDEX](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#WIDTH_INDEX())` = 2` The index for vehicle width in millimeters.                                                                   |

|                                                                                                                                                                                                                                                                           ### Public constructors                                                                                                                                                                                                                                                                            |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ExteriorDimensions](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#ExteriorDimensions())`()` Creates a default ExteriorDimensions instance that report "unknown" as the value.                                                                                                                                                                                                                                                                                                                                            |
| [ExteriorDimensions](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#ExteriorDimensions(androidx.car.app.hardware.common.CarValue<java.lang.Integer[]>))`(exteriorDimensions: `[CarValue](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue)`<`[Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)`<`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`!>!>)` Creates an ExteriorDimensions instance with the given car value. |

|                                                                                                                            ### Public functions                                                                                                                            |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                                                                                                                        | [equals](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#equals(java.lang.Object))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [CarValue](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/common/CarValue)`<`[Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)`<`[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`!>!>` | [getExteriorDimensions](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#getExteriorDimensions())`()` Returns the vehicle's exterior dimensions in millimeters.              |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                | [hashCode](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#hashCode())`()`                                                                                                  |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                                                                                                          | [toString](https://developer.android.com/reference/kotlin/androidx/car/app/hardware/info/ExteriorDimensions#toString())`()`                                                                                                  |

## Constants

### CURB_TO_CURB_TURNING_RADIUS_INDEX

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
const val CURB_TO_CURB_TURNING_RADIUS_INDEX = 7: Int
```

The index for vehicle curb to curb turning radius in millimeters.  

### HEIGHT_INDEX

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
const val HEIGHT_INDEX = 0: Int
```

The index for vehicle height in millimeters.  

### LENGTH_INDEX

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
const val LENGTH_INDEX = 1: Int
```

The index for vehicle length in millimeters.  

### TRACK_WIDTH_FRONT_INDEX

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
const val TRACK_WIDTH_FRONT_INDEX = 5: Int
```

The index for vehicle front track width in millimeters.  

### TRACK_WIDTH_REAR_INDEX

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
const val TRACK_WIDTH_REAR_INDEX = 6: Int
```

The index for vehicle rear track width in millimeters.  

### WHEEL_BASE_INDEX

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
const val WHEEL_BASE_INDEX = 4: Int
```

The index for vehicle wheel base in millimeters.  

### WIDTH_INCLUDING_MIRRORS_INDEX

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
const val WIDTH_INCLUDING_MIRRORS_INDEX = 3: Int
```

The index for vehicle width including mirrors in millimeters.  

### WIDTH_INDEX

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
const val WIDTH_INDEX = 2: Int
```

The index for vehicle width in millimeters.  

## Public constructors

### ExteriorDimensions

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
ExteriorDimensions()
```

Creates a default ExteriorDimensions instance that report "unknown" as the value.  

### ExteriorDimensions

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
ExteriorDimensions(exteriorDimensions: CarValue<Array<Int!>!>)
```

Creates an ExteriorDimensions instance with the given car value.  

## Public functions

### equals

```
fun equals(other: Any?): Boolean
```  

### getExteriorDimensions

Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.7.0)  

```
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](https://developer.android.com/reference/android/car/VehiclePropertyIds#INFO_EXTERIOR_DIMENSIONS).  

### hashCode

```
fun hashCode(): Int
```  

### toString

```
fun toString(): String
```