Stay organized with collections
Save and categorize content based on your preferences.
public
static
final
class
WearableButtons.ButtonInfo
extends Object
This class is deprecated.
use androidx.wear.input.WearableButtons
provided by the Jetpack Wear Input library instead.
Metadata for a specific button.
Summary
Public methods |
int
|
getKeycode()
Gets the keycode this ButtonInfo provides information for.
|
float
|
getX()
The x coordinate of the button in screen coordinates.
|
float
|
getY()
The y coordinate of the button in screen coordinates.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
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.
Returns |
int |
The keycode this ButtonInfo provides information for
|
getX
public float getX ()
The x coordinate of the button in screen coordinates.
getY
public float getY ()
The y coordinate of the button in screen coordinates.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# WearableButtons.ButtonInfo\n\nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nWearableButtons.ButtonInfo\n==========================\n\n\n`\npublic\nstatic\nfinal\n\nclass\nWearableButtons.ButtonInfo\n`\n\n\n`\n\nextends `[Object](http://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|-----------------------------------------------------------|\n| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | android.support.wearable.input.WearableButtons.ButtonInfo |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This class is deprecated.** \n\nuse `androidx.wear.input.WearableButtons` provided by the [Jetpack Wear Input](../../../../../jetpack/androidx/releases/wear) library instead.\n\nMetadata for a specific button.\n\nSummary\n-------\n\n| ### Public methods ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[getKeycode](../../../../../reference/android/support/wearable/input/WearableButtons.ButtonInfo.html#getKeycode())`() ` Gets the keycode this `ButtonInfo` provides information for. |\n| ` float` | ` `[getX](../../../../../reference/android/support/wearable/input/WearableButtons.ButtonInfo.html#getX())`() ` The x coordinate of the button in screen coordinates. |\n| ` float` | ` `[getY](../../../../../reference/android/support/wearable/input/WearableButtons.ButtonInfo.html#getY())`() ` The y coordinate of the button in screen coordinates. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| 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)`\u003c?\u003e` | ` 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() ` | ||\n\nPublic methods\n--------------\n\n### getKeycode\n\n```\npublic int getKeycode ()\n```\n\nGets the keycode this `ButtonInfo` provides information for.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|---------------------------------------------------------------|\n| `int` | The keycode this `ButtonInfo` provides information for \u003cbr /\u003e |\n\n### getX\n\n```\npublic float getX ()\n```\n\nThe x coordinate of the button in screen coordinates.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |\n\n### getY\n\n```\npublic float getY ()\n```\n\nThe y coordinate of the button in screen coordinates.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------|--------|\n| `float` | \u003cbr /\u003e |"]]