WearableButtons.ButtonInfo

public static final class WearableButtons.ButtonInfo
extends Object

↳ android.support.wearable.input.WearableButtons.ButtonInfo


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.

Returns
float

getY

public float getY ()

The y coordinate of the button in screen coordinates.

Returns
float

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.