Google is committed to advancing racial equity for Black communities. See how.

WearableButtons.ButtonInfo

public static final class WearableButtons.ButtonInfo
extends Object

java.lang.Object
   ↳ androidx.wear.input.WearableButtons.ButtonInfo


Metadata for a specific button.

Summary

Public methods

int getKeycode()

Gets the keycode this ButtonInfo provides information for.

int getLocationZone()

The location zone of the button (e.g.

float getX()

The x coordinate of the button in screen coordinates.

float getY()

The y coordinate of the button in screen coordinates.

Inherited methods

Public methods

getKeycode

public int getKeycode ()

Gets the keycode this ButtonInfo provides information for.

Returns
int The keycode this ButtonInfo provides information for

getLocationZone

public int getLocationZone ()

The location zone of the button (e.g. LOC_EAST)

Returns
int

getX

public float getX ()

The x coordinate of the button in screen coordinates.

Returns
float

getY

public float getY ()

The y coordinate of the button in screen coordinates.

Returns
float