org.openintents.hardware
Class SensorEventListener
java.lang.Object
org.openintents.hardware.SensorEventListener
public class SensorEventListener
- extends java.lang.Object
Listens to sensor events by binding to a central Sensor service.
- Author:
- Peli
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SensorEventListener
public SensorEventListener(Context context)
bindService
public void bindService()
unbindService
public void unbindService()
isBound
public boolean isBound()
setOnSensorListener
public void setOnSensorListener(SensorEventListener.OnSensorListener sensorListener)
- Register a callback to be invoked when the sensor state changes.
- Parameters:
sensorListener - The callback that will run or null to unregister.