| 13 | } |
| 14 | |
| 15 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected