CarAppApiLevels


public final class CarAppApiLevels


API levels supported by this library.

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

Summary

Constants

static final int

Initial API level.

static final int

API level 2.

static final int

API level 3.

static final int

API level 4.

static final int

API level 5.

static final int

API level 6.

static final int

API level 7.

static final int

API level 8.

static final int

API level 9.

Public methods

static int

Returns the highest API level implemented by this library. *

static int

Returns the lowest API level implemented by this library.

Constants

LEVEL_1

Added in 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

LEVEL_2

Added in 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

LEVEL_3

Added in 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

LEVEL_4

Added in 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

LEVEL_5

Added in 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

LEVEL_6

Added in 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

LEVEL_7

Added in 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

LEVEL_8

Added in 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

LEVEL_9

Added in 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

Public methods

getLatest

Added in 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

getOldest

Added in 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