public final class

WearableButtons.ButtonInfo

extends java.lang.Object

 java.lang.Object

↳androidx.wear.input.WearableButtons.ButtonInfo

Overview

Metadata for a specific button.

Summary

Constructors
publicButtonInfo(int keycode, float x, float y, int locationZone)

Methods
public intgetKeycode()

Gets the keycode this ButtonInfo provides information for.

public intgetLocationZone()

The location zone of the button (e.g.

public floatgetX()

The x coordinate of the button in screen coordinates.

public floatgetY()

The y coordinate of the button in screen coordinates.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public ButtonInfo(int keycode, float x, float y, int locationZone)

Methods

public int getKeycode()

Gets the keycode this ButtonInfo provides information for.

Returns:

The keycode this ButtonInfo provides information for

public float getX()

The x coordinate of the button in screen coordinates.

public float getY()

The y coordinate of the button in screen coordinates.

public int getLocationZone()

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