SensorsΒΆ
Availability of motion sensors on the device, as returned by BackgroundGeolocation.getSensors.
These sensors power the SDK's motion activity-recognition system. When a sensor is absent β particularly on low-end Android devices β motion recognition performance degrades and the SDK may rely more heavily on location-based heuristics.
MembersΒΆ
accelerometerΒΆ
true when the device has an accelerometer.
gyroscopeΒΆ
true when the device has a gyroscope.
magnetometerΒΆ
true when the device has a magnetometer (compass).
motion_hardwareΒΆ
iOS only true when the device has a dedicated M-series motion co-processor
(iPhone 5S and later). The M-series co-processor offloads motion activity recognition from the
main CPU, enabling low-power step counting and activity detection.
platformΒΆ
OS platform name: "ios" or "android".
significant_motionΒΆ
Android only true when the device supports the Significant Motion hardware trigger.
When present, this sensor allows the SDK to wake from a deep idle state only when the device actually moves, saving significant battery.