public interface MotionSensorListener

Receives raw readings from a MotionSensor. Register an implementation with MotionSensor.addListener(MotionSensorListener). Callbacks are always invoked on the EDT so it is safe to update the UI directly from them.

Methods

public abstract void motionReceived(MotionEvent evt)Invoked when a new sensor reading is available.

Method details

motionReceived

public abstract void motionReceived(MotionEvent evt)
Invoked when a new sensor reading is available.

Parameters

evt MotionEvent
the reading; its axis values are interpreted according to the sensor type as documented in MotionEvent