WearableButtons.ButtonInfo

public final class WearableButtons.ButtonInfo


Metadata for a specific button.

Summary

Public methods

@NonNull int

Gets the keycode this ButtonInfo provides information for.

@WearableButtons.ButtonLocation @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 ButtonInfo provides information for.

Returns
int

The keycode this ButtonInfo provides information for

getLocationZone

@WearableButtons.ButtonLocation
@NonNull
public @WearableButtons.ButtonLocation 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.