Skip to content

DeviceSettings


Members

isPowerSaveMode

public var isPowerSaveMode: Bool

Returns the current state of the operating system's power-saving mode.

Power-saving mode can throttle background services such as GPS and HTTP uploads.

See also - onPowerSaveChange to subscribe to future changes.

iOS

Power Saving mode is enabled manually in Settings → Battery or via an automatic OS prompt.

Android

Battery Saver is enabled manually in Settings → Battery → Battery Saver or automatically when the battery drops below a configured threshold.

let bgGeo = BGGeo.shared
let isPowerSaveMode = bgGeo.deviceSettings.isPowerSaveMode