AndroidThings

public final class AndroidThings
extends Object

java.lang.Object
   ↳ com.google.android.things.AndroidThings


AndroidThings library information. This library lives on the device and is linked at runtime to the app, so it may be a different version than what the app was compiled against. This class provides a way to query the version of the library installed on the device and used at runtime.

Summary

Public methods

static int getVersionMajor()

Gets the major version number.

static int getVersionMinor()

Gets the minor version number.

static String getVersionString()

Returns the full library version as a string.

static String getVersionTag()

Gets the version tag.

Inherited methods

From class java.lang.Object

Public methods

getVersionMajor

int getVersionMajor ()

Gets the major version number. A major version bump indicates additional APIs have been added, but the library will still be backwards-compatible with previous major API versions.

Returns
int The major library version number.

getVersionMinor

</div>

int getVersionMinor ()

Gets the minor version number.

A minor version bump indicates internal changes such as bugfixes or other improvements. No additional APIs will be added but some behavior may change.</p>

Returns
int The minor library version number.

</div>

getVersionString

</div>

String getVersionString ()

Returns the full library version as a string.

Includes the major and minor versions and the tag. The string format may change between library versions; use the individual component accessors instead for programmatic version checks.</p>

Returns
String The library version string.

</div>

getVersionTag

</div>

String getVersionTag ()

Gets the version tag.

A tag provides additional information about the library. Tags will be an empty string on stable releases; if non-empty then the library may contain test APIs or behaviors.</p>

Returns
String The library version tag.

</div>

results matching ""

    No results matching ""