# WearableButtons.ButtonInfo

Summary:[Methods](https://developer.android.com/reference/android/support/wearable/input/WearableButtons.ButtonInfo#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/input/WearableButtons.ButtonInfo#inhmethods)  

# WearableButtons.ButtonInfo

`
public
static
final

class
WearableButtons.ButtonInfo
`  
`

extends `[Object](http://developer.android.com/reference/java/lang/Object.html)`


``


`

|---|-----------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||
| ↳ | android.support.wearable.input.WearableButtons.ButtonInfo |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
use`androidx.wear.input.WearableButtons`provided by the[Jetpack Wear Input](https://developer.android.com/jetpack/androidx/releases/wear)library instead.

Metadata for a specific button.

## Summary

|                                                                                               ### Public methods                                                                                               ||
|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`   | ` `[getKeycode](https://developer.android.com/reference/android/support/wearable/input/WearableButtons.ButtonInfo.html#getKeycode())`() ` Gets the keycode this`ButtonInfo`provides information for. |
| ` float` | ` `[getX](https://developer.android.com/reference/android/support/wearable/input/WearableButtons.ButtonInfo.html#getX())`() ` The x coordinate of the button in screen coordinates.                  |
| ` float` | ` `[getY](https://developer.android.com/reference/android/support/wearable/input/WearableButtons.ButtonInfo.html#getY())`() ` The y coordinate of the button in screen coordinates.                  |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||

## Public methods

### getKeycode

```
public int getKeycode ()
```

Gets the keycode this`ButtonInfo`provides information for.

<br />

|                              Returns                               ||
|-------|-------------------------------------------------------------|
| `int` | The keycode this`ButtonInfo`provides information for <br /> |

### getX

```
public float getX ()
```

The x coordinate of the button in screen coordinates.

<br />

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

### getY

```
public float getY ()
```

The y coordinate of the button in screen coordinates.

<br />

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