-
- All Implemented Interfaces:
-
android.hardware.SensorEventListener,android.hardware.SensorEventListener2
public final class InternalSensorManager implements SensorEventListener2
-
-
Constructor Summary
Constructors Constructor Description InternalSensorManager(Context context, DataManager manager)
-
Method Summary
Modifier and Type Method Description UnitonFlushCompleted(Sensor sensor)final UnitstartUpdates()UnitonSensorChanged(SensorEvent event)UnitonAccuracyChanged(Sensor sensor, Integer accuracy)final Unitstop()final UnitapplyConfig(MotionConfiguration config)Apply the latest motion config. -
-
Constructor Detail
-
InternalSensorManager
InternalSensorManager(Context context, DataManager manager)
-
-
Method Detail
-
onFlushCompleted
Unit onFlushCompleted(Sensor sensor)
-
startUpdates
@Synchronized() final Unit startUpdates()
-
onSensorChanged
Unit onSensorChanged(SensorEvent event)
-
onAccuracyChanged
Unit onAccuracyChanged(Sensor sensor, Integer accuracy)
-
stop
@Synchronized() final Unit stop()
-
applyConfig
@Synchronized() final Unit applyConfig(MotionConfiguration config)
Apply the latest motion config. Only
samplingHzis consumed today — it sets the native event rate the SDK requests viaSensorManager.registerListener(..., samplingRate). Re-registers all listeners if the SDK is currently running, so a server-pushed rate change takes effect without requiring a session restart.
-
-
-
-