Build 1.0_r1(from source)

android.hardware
Interface SensorListener

All Known Implementing Classes:
OrientationListener

public interface SensorListener

Used for receiving notifications from the SensorManager when sensor values have changed.


Method Summary
 void onAccuracyChanged(int sensor, int accuracy)
          Called when the accuracy of a sensor has changed.
 void onSensorChanged(int sensor, float[] values)
          Called when sensor values have changed.
 

Method Detail

onSensorChanged

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

onAccuracyChanged

void onAccuracyChanged(int sensor,
                       int accuracy)
Called when the accuracy of a sensor has changed. See SensorManager for details.

Parameters:
sensor - The ID of the sensor being monitored
accuracy - The new accuracy of this sensor

Build 1.0_r1(from source)

Please submit a feedback, bug or feature