WearableButtons.ButtonInfo

public final class WearableButtons.ButtonInfo


Metadata for a specific button.

Summary

Public methods

@NonNull int

Gets the keycode this {@code ButtonInfo} provides information for.

@NonNull int

The location zone of the button (e.g.

@NonNull float

The x coordinate of the button in screen coordinates.

@NonNull float

The y coordinate of the button in screen coordinates.

Public methods

getKeycode

@NonNull
public int getKeycode()

Gets the keycode this {@code ButtonInfo} provides information for.

Returns
int

The keycode this {@code ButtonInfo} provides information for

getLocationZone

@NonNull
public int getLocationZone()

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

getX

@NonNull
public float getX()

The x coordinate of the button in screen coordinates.

getY

@NonNull
public float getY()

The y coordinate of the button in screen coordinates.