MoveServiceWarning

MOVE Models

data class MoveServiceWarning(
    val service: MoveDetectionService,
    val warnings: List<MoveWarning>
)
    
sealed class MoveWarning {

    object ActivityPermissionMissing : MoveWarning()
    object BackgroundLocationPermissionMissing : MoveWarning()
    object BluetoothPermissionMissing : MoveWarning()
    object EnergySaver : MoveWarning()
    object LocationMode : MoveWarning()
    object MockProvider : MoveWarning()
    object MockProviderLocation : MoveWarning()
    object BatteryOptimization : MoveWarning()
    object GpsOff : MoveWarning()
    object Offline : MoveWarning()
    object NoSim : MoveWarning()
    object Rooted : MoveWarning()
    object GoEdition : MoveWarning()
    object PlayServicesMissing : MoveWarning()
    object BackgroundRestricted : MoveWarning()
    object GooglePlayLocationAccuracyMissing : MoveWarning()
    object NotificationPermissionMissing : MoveWarning()
    class LocationPowerMode(val mode: Int) : MoveWarning()
    object BluetoothTurnedOff : MoveWarning()
    object BluetoothScanPermissionMissing : MoveWarning()
    object BluetoothConnectPermissionMissing : MoveWarning()
    object FineLocationPermissionMissing : MoveWarning()
    object NotificationMissing : MoveWarning()
}

Field

service

see MoveDetectionService in MoveConfig

reason

List of optional MoveServiceWarning

LocationPowerMode

0

Either the location providers shouldn't be affected by battery saver or battery saver is off.

1

In this mode, the GPS based location provider should be disabled when battery saver is on and the device is non-interactive.

2

All location providers should be disabled when battery saver is on and the device is non-interactive.

3

In this mode, all the location providers will be kept available, but location fixes should only be provided to foreground apps.

4

In this mode, location will not be turned off, but LocationManager will throttle all requests to providers when the device is non-interactive.

Last updated