Skip to content

Sensors

public classSensors

Availability of motion sensors on the device, as returned by BGGeo.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

hasAccelerometer

public var hasAccelerometer: Bool

true when the device has an accelerometer.

hasGyroscope

public var hasGyroscope: Bool

true when the device has a gyroscope.

hasMagnetometer

public var hasMagnetometer: Bool

true when the device has a magnetometer (compass).

hasSignificantMotion

public var hasSignificantMotion: Bool

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.