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
evtMotionEvent- the reading; its axis values are interpreted according to the
sensor type as documented in
MotionEvent