TestWearableButtonsProvider.TestWearableButtonLocation
public
static
class
TestWearableButtonsProvider.TestWearableButtonLocation
extends Object
java.lang.Object | |
↳ | androidx.wear.input.testing.TestWearableButtonsProvider.TestWearableButtonLocation |
Class describing the location of a button on a wearable device. This has two forms; it can either store the absolute location of the button, or store both the absolute location of the button, and the absolute location when the screen is rotated through 180 degrees.
Summary
Public constructors | |
---|---|
TestWearableButtonLocation(float x, float y)
Build a button location, with just the default button location. |
|
TestWearableButtonLocation(float x, float y, float rotatedX, float rotatedY)
Build a button location, with both the default button location, and the location when the device is rotated through 180 degrees. |
Public methods | |
---|---|
PointF
|
getLocation()
Get the location of this button. |
PointF
|
getRotatedLocation()
Get the location of this button when the device is rotated. |
Inherited methods | |
---|---|
Public constructors
TestWearableButtonLocation
public TestWearableButtonLocation (float x, float y)
Build a button location, with just the default button location.
Parameters | |
---|---|
x |
float : X coordinate of the button. |
y |
float : Y coordinate of the button.
|
TestWearableButtonLocation
public TestWearableButtonLocation (float x, float y, float rotatedX, float rotatedY)
Build a button location, with both the default button location, and the location when the device is rotated through 180 degrees.
Parameters | |
---|---|
x |
float : X coordinate of the button. |
y |
float : Y coordinate of the button. |
rotatedX |
float : X coordinate of the button when the device is rotated. |
rotatedY |
float : Y coordinate of the button when the device is rotated.
|