Module: Google::Maps::FleetEngine::V1::LocationPowerSaveMode

Defined in:
proto_docs/google/maps/fleetengine/v1/vehicles.rb

Overview

How location features are configured to behave on the mobile device when the devices "battery saver" feature is on. (https://developer.android.com/reference/android/os/PowerManager#getLocationPowerSaveMode())

Constant Summary collapse

UNKNOWN_LOCATION_POWER_SAVE_MODE =

Undefined LocationPowerSaveMode

0
LOCATION_MODE_NO_CHANGE =

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

1
LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF =

The GPS based location provider should be disabled when battery saver is on and the device is non-interactive.

2
LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF =

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

3
LOCATION_MODE_FOREGROUND_ONLY =

All the location providers will be kept available, but location fixes should only be provided to foreground apps.

4
LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF =

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

5