Interface MotionSensorListener
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.-
Method Summary
Modifier and TypeMethodDescriptionvoidInvoked when a new sensor reading is available.
-
Method Details
-
motionReceived
Invoked when a new sensor reading is available.
Parameters
evt: the reading; its axis values are interpreted according to the sensor type as documented inMotionEvent
-