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 Type
    Method
    Description
    void
    Invoked when a new sensor reading is available.
  • Method Details

    • motionReceived

      void motionReceived(MotionEvent evt)

      Invoked when a new sensor reading is available.

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