Package 

Class AFSensorEventCollector

  • All Implemented Interfaces:
    android.hardware.SensorEventListener

    
    public final class AFSensorEventCollector
     implements SensorEventListener
                        

    Collector of sensor values. May be used as a map key, because sensors' description is final.

    • Method Summary

      Modifier and Type Method Description
      void onSensorChanged(SensorEvent event)
      void onAccuracyChanged(Sensor sensor, int accuracy)
      void copyDataTo(Map<AFSensorEventCollector, Map<String, Object>> events)
      int hashCode()
      boolean equals(Object obj) Listeners are considered to be equal if they store the same sensor description(type, name, vendor).
      • Methods inherited from class android.hardware.SensorEventListener

        onAccuracyChanged, onSensorChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait