Android 12 Developer Preview is here! Try it out, and give us your feedback!

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.

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)

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