Sdk.VERSION_CODES

public static final class Sdk.VERSION_CODES
extends Object

java.lang.Object
   ↳ com.google.wear.Sdk.VERSION_CODES


The set of known Wear SDK version codes:

Summary

Fields

public static final WearApiVersion WEAR_BAKLAVA_0

The first Wear API version released on the Android Baklava trunk_stable version (API level 36.0).

public static final WearApiVersion WEAR_BAKLAVA_1

The first Wear API minor version released on the Android Baklava trunk_stable version (API level 36.1).

public static final WearApiVersion WEAR_CINNAMON_BUN_0

The first Wear API version released on the Android Cinnamon Bun trunk_stable version (API level 37.0).

public static final WearApiVersion WEAR_TIRAMISU_1

The first Wear API version released on the Android T platform version (API level 33).

public static final WearApiVersion WEAR_TIRAMISU_2

The second Wear API version released on the Android T platform version (API level 33).

public static final WearApiVersion WEAR_TIRAMISU_3

The third Wear API version released on the Android T platform version (API level 33).

public static final WearApiVersion WEAR_TIRAMISU_4

The fourth Wear API version released on the Android T platform version (API level 33).

public static final WearApiVersion WEAR_UDC_1

The first Wear API version released on the Android U platform version (API level 34).

public static final WearApiVersion WEAR_VIC_1

The first Wear API version released on the Android V platform version (API level 35).

Public methods

static WearApiVersion lookup(String requiredVersion)

This method helps ensure that API versions exist when queried from a client that may be running on an older version of the platform prior to the introduction of the WearApiVersion corresponding to the given API level.

Inherited methods

Fields

WEAR_BAKLAVA_0

Added in API level 36
public static final WearApiVersion WEAR_BAKLAVA_0

The first Wear API version released on the Android Baklava trunk_stable version (API level 36.0).

WEAR_BAKLAVA_1

Added in version 36.1
public static final WearApiVersion WEAR_BAKLAVA_1

The first Wear API minor version released on the Android Baklava trunk_stable version (API level 36.1).

WEAR_CINNAMON_BUN_0

Added in API level 37
public static final WearApiVersion WEAR_CINNAMON_BUN_0

The first Wear API version released on the Android Cinnamon Bun trunk_stable version (API level 37.0).

WEAR_TIRAMISU_1

Added in version 34.1
public static final WearApiVersion WEAR_TIRAMISU_1

The first Wear API version released on the Android T platform version (API level 33).

WEAR_TIRAMISU_2

Added in version 34.1
public static final WearApiVersion WEAR_TIRAMISU_2

The second Wear API version released on the Android T platform version (API level 33).

WEAR_TIRAMISU_3

Added in version 34.1
public static final WearApiVersion WEAR_TIRAMISU_3

The third Wear API version released on the Android T platform version (API level 33).

WEAR_TIRAMISU_4

Added in version 34.1
public static final WearApiVersion WEAR_TIRAMISU_4

The fourth Wear API version released on the Android T platform version (API level 33).

WEAR_UDC_1

Added in version 34.1
public static final WearApiVersion WEAR_UDC_1

The first Wear API version released on the Android U platform version (API level 34).

WEAR_VIC_1

Added in version 35.1
public static final WearApiVersion WEAR_VIC_1

The first Wear API version released on the Android V platform version (API level 35).

Public methods

lookup

Added in API level 36
public static WearApiVersion lookup (String requiredVersion)

This method helps ensure that API versions exist when queried from a client that may be running on an older version of the platform prior to the introduction of the WearApiVersion corresponding to the given API level.

Parameters
requiredVersion String: a string corresponding to the required level. The format of the string is WEAR_<VERSION>_<RELEASE>. For example, the first minor release on UDC would be `WEAR_UDC_1`.

Returns
WearApiVersion the WearApiVersion corresponding to the given string, if it exists.