public interface Accelerometer
Modifier and Type | Interface and Description |
---|---|
static class |
Accelerometer.Range |
Modifier and Type | Method and Description |
---|---|
double |
getX()
Common interface for getting the x axis acceleration
|
double |
getY()
Common interface for getting the y axis acceleration
|
double |
getZ()
Common interface for getting the z axis acceleration
|
void |
setRange(Accelerometer.Range range)
Common interface for setting the measuring range of an accelerometer.
|
void setRange(Accelerometer.Range range)
range
- The maximum acceleration, positive or negative, that the
accelerometer will measure. Not all accelerometers support all ranges.double getX()
double getY()
double getZ()
Copyright © 2015. All rights reserved.