-
- All Implemented Interfaces:
-
android.hardware.SensorEventListener
public final class InternalSensorManager implements SensorEventListener
-
-
Constructor Summary
Constructors Constructor Description InternalSensorManager(Context context, DataManager manager)
-
Method Summary
Modifier and Type Method Description 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
-
startUpdates
final Unit startUpdates()
-
onSensorChanged
Unit onSensorChanged(SensorEvent event)
-
onAccuracyChanged
Unit onAccuracyChanged(Sensor sensor, Integer accuracy)
-
applyConfig
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.
-
-
-
-