MCPcopy Create free account
hub / github.com/transistorsoft/react-native-background-geolocation / DeviceSettings

Class DeviceSettings

src/DeviceSettings.js:15–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15export default class DeviceSettings {
16 isIgnoringBatteryOptimizations() {
17 return RNBackgroundGeolocation.isIgnoringBatteryOptimizations();
18 }
19
20 showIgnoreBatteryOptimizations() {
21 const args = {action: IGNORE_BATTERY_OPTIMIZATIONS};
22 return RNBackgroundGeolocation.requestSettings(args);
23 }
24
25 showPowerManager() {
26 const args = {action: POWER_MANAGER};
27 return RNBackgroundGeolocation.requestSettings(args);
28 }
29
30 show(request) {
31 return RNBackgroundGeolocation.showSettings(request);
32 }
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected