Android
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

Summary

Public Methods

          void  onSensorChanged(int sensor, float[] values)
Called when sensor values have changed.

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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48