CarAppApiLevels

public final class CarAppApiLevels
extends Object

java.lang.Object
   ↳ androidx.car.app.versioning.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

int LEVEL_1

Initial API level.

int LEVEL_2

API level 2.

int LEVEL_3

API level 3.

Public methods

static int getLatest()

Returns the highest API level implemented by this library.

static int getOldest()

Returns the lowest API level implemented by this library.

Inherited methods

Constants

LEVEL_1

public static final int LEVEL_1

Initial API level.

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

Constant Value: 1 (0x00000001)

LEVEL_2

public static final int LEVEL_2

API level 2.

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

Constant Value: 2 (0x00000002)

LEVEL_3

public static final int LEVEL_3

API level 3.

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

Constant Value: 3 (0x00000003)

Public methods

getLatest

public static int getLatest ()

Returns the highest API level implemented by this library.

Returns
int

getOldest

public static int getOldest ()

Returns the lowest API level implemented by this library.

Returns
int