android.hardware
public
interface
android.hardware.SensorListener
android.hardware.SensorListener |
|
Used for receiving notifications from the SensorManager when
sensor values have changed.
Known Indirect Subclasses
MyLocationOverlay |
An Overlay for drawing the user's current location (and
accuracy) on the map, and/or a compass-rose inset. |
OrientationListener |
Helper class for receiving notifications from the SensorManager when
the orientation of the device has changed. |
Summary
Details
Public Methods
public
void
onSensorChanged(int sensor, float[] values)
Called when sensor values have changed.
The length and contents of the values array vary
depending on which sensor is being monitored.
See
SensorManager
for details on possible sensor types and values.
Parameters
sensor
| The ID of the sensor being monitored |
values
| The new values for the sensor
|