Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions) Summary: [Methods](https://developer.android.com/reference/com/google/wear/WearApiVersion#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/WearApiVersion#inhmethods)

# WearApiVersion


`
public

final

class
WearApiVersion
`


`

extends Object


`

`


implements

Comparable<https://developer.android.com/reference/com/google/wear/WearApiVersion>


`

|---|---|
| java.lang.Object ||
| ↳ | com.google.wear.WearApiVersion |

<br />

*** ** * ** ***

An API version abstraction provided by the Wear SDK that comprises both the Android platform API
level as well as the incremental API level associated with changes introduced in a new release of
the Wear OS platform API, based upon the Android platform.   

<br />


Each API version can be associated with a TAG for better readability and identification.

## Summary

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/com/google/wear/WearApiVersion#compareTo(com.google.wear.WearApiVersion)(https://developer.android.com/reference/com/google/wear/WearApiVersion o) ` |
| ` String` | ` https://developer.android.com/reference/com/google/wear/WearApiVersion#toString()() ` |

| ### Inherited methods |
|---|---|
| From class ` java.lang.Object ` |---|---| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||
| From interface ` java.lang.Comparable ` |---|---| | ` abstract int` | ` compareTo(https://developer.android.com/reference/com/google/wear/WearApiVersion arg0) ` | ||

## Public methods

### compareTo

Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public int compareTo (WearApiVersion o)
```

<br />

<br />

| Parameters ||
|---|---|
| `o` | `WearApiVersion` <br /> |

| Returns ||
|---|---|
| `int` | <br /> |

### toString

Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public String toString ()
```

<br />

<br />

| Returns ||
|---|---|
| `String` | <br /> |