-
- 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 voidonSensorChanged(SensorEvent event)voidonAccuracyChanged(Sensor sensor, int accuracy)voidcopyDataTo(Map<AFSensorEventCollector, Map<String, Object>> events)inthashCode()booleanequals(Object obj)Listeners are considered to be equal if they store the same sensor description(type, name, vendor). -
-
Method Detail
-
onSensorChanged
void onSensorChanged(SensorEvent event)
-
onAccuracyChanged
void onAccuracyChanged(Sensor sensor, int accuracy)
-
copyDataTo
void copyDataTo(Map<AFSensorEventCollector, Map<String, Object>> events)
-
hashCode
int hashCode()
-
-
-
-