# CarAppApiLevels

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/versioning/CarAppApiLevels.java+class:androidx.car.app.versioning.CarAppApiLevels) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.0.0)

*** ** * ** ***


```
public final class CarAppApiLevels
```

<br />

*** ** * ** ***

API levels supported by this library.

Each level denotes a set of elements (classes, fields and methods) known to both clients and hosts.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/CarContext#getCarAppApiLevel()` |   |
| `https://developer.android.com/jetpack/androidx/releases/car-app` | [Car App Library Release Notes](https://developer.android.com/jetpack/androidx/releases/car-app) |

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_1() = 1` Initial API level. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_2() = 2` API level 2. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_3() = 3` API level 3. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_4() = 4` API level 4. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_5() = 5` API level 5. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_6() = 6` API level 6. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_7() = 7` API level 7. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_8() = 8` API level 8. |
| `static final int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#LEVEL_9() = 9` API level 9. |

| ### Public methods |
|---|---|
| `static int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#getLatest()()` Returns the highest API level implemented by this library. \* |
| `static int` | `https://developer.android.com/reference/androidx/car/app/versioning/CarAppApiLevels#getOldest()()` Returns the lowest API level implemented by this library. |

## Constants

### LEVEL_1

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

```
public static final int LEVEL_1 = 1
```

Initial API level.

Includes core API services and managers, and templates for parking, charging, and navigation apps.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### LEVEL_2

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

```
public static final int LEVEL_2 = 2
```

API level 2.

Includes features such as sign-in template, long-message template, and multi-variant text support.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### LEVEL_3

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

```
public static final int LEVEL_3 = 3
```

API level 3.

Includes a car hardware manager for access to sensors and other vehicle properties.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### LEVEL_4

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

```
public static final int LEVEL_4 = 4
```

API level 4.

Includes AAOS support and other features such as QR code sign-in, show current location in place-list-map template, contrast check capability.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### LEVEL_5

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

```
public static final int LEVEL_5 = 5
```

API level 5.

Includes features such as voice access, alerters, map-pane template details view, responsive-turn-cards, tap on map, list within the navigation template for non-places content, map interactivity (zoom and pan) on POIs and route preview, content refresh on POIs (with speedbump).

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### LEVEL_6

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

```
public static final int LEVEL_6 = 6
```

API level 6.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### LEVEL_7

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

```
public static final int LEVEL_7 = 7
```

API level 7.

Includes a Badge feature for GridItem image.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### LEVEL_8

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

```
public static final int LEVEL_8 = 8
```

API level 8.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### LEVEL_9

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

```
public static final int LEVEL_9 = 9
```

API level 9.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

## Public methods

### getLatest

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

```
public static int getLatest()
```

Returns the highest API level implemented by this library. \*

This method handles the thread-safe caching logic.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />

### getOldest

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

```
public static int getOldest()
```

Returns the lowest API level implemented by this library.

Value is one of the following:

- `CarAppApiLevels.UNKNOWN`
- `CarAppApiLevels.LEVEL_1`
- `CarAppApiLevels.LEVEL_2`
- `CarAppApiLevels.LEVEL_3`
- `CarAppApiLevels.LEVEL_4`
- `CarAppApiLevels.LEVEL_5`
- `CarAppApiLevels.LEVEL_6`
- `CarAppApiLevels.LEVEL_7`
- `CarAppApiLevels.LEVEL_8`
- `CarAppApiLevels.LEVEL_9`

<br />