blob: 35e57131dd4b164a9778c234b23002f9d2db6457 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package com.draco.buoy.repositories.constants
import android.os.PowerManager
/**
* A rip from android.os.PowerManager LOCATION_MODE constants, as
* PowerManager requires Android P APIs
*/
object PowerManagerLocationModes {
/**
* Default behavior
*/
const val NO_CHANGE = 0
/**
* Disable just GPS when the screen is off
*/
const val GPS_DISABLED_SCREEN_OFF = 1
/**
* Disable all location providers when the screen is off
*/
const val ALL_DISABLED_SCREEN_OFF = 2
/**
* Only foreground apps can query new locations
*/
const val FOREGROUND_ONLY = 3
/**
* Throttle requests when the screen is off
*/
const val THROTTLE_SCREEN_OFF = 4
}
|