Google is committed to advancing racial equity for Black communities. See how.

ButtonInfo

class ButtonInfo
kotlin.Any
   ↳ androidx.wear.input.WearableButtons.ButtonInfo

Metadata for a specific button.

Summary

Public methods
Int

Gets the keycode this ButtonInfo provides information for.

Int

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

Float

The x coordinate of the button in screen coordinates.

Float

The y coordinate of the button in screen coordinates.

Public methods

getKeycode

fun getKeycode(): Int

Gets the keycode this ButtonInfo provides information for.

Return
Int The keycode this ButtonInfo provides information for

getLocationZone

fun getLocationZone(): Int

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

getX

fun getX(): Float

The x coordinate of the button in screen coordinates.

getY

fun getY(): Float

The y coordinate of the button in screen coordinates.