Google Maps FleetEngine V1 Client - Class LocationPowerSaveMode (0.4.1)

Reference documentation and code samples for the Google Maps FleetEngine V1 Client class LocationPowerSaveMode.

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())

Protobuf type maps.fleetengine.v1.LocationPowerSaveMode

Namespace

Google \ Maps \ FleetEngine \ V1

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

UNKNOWN_LOCATION_POWER_SAVE_MODE

Value: 0

Undefined LocationPowerSaveMode

Generated from protobuf enum UNKNOWN_LOCATION_POWER_SAVE_MODE = 0;

LOCATION_MODE_NO_CHANGE

Value: 1

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

Generated from protobuf enum LOCATION_MODE_NO_CHANGE = 1;

LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF

Value: 2

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

Generated from protobuf enum LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2;

LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF

Value: 3

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

Generated from protobuf enum LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3;

LOCATION_MODE_FOREGROUND_ONLY

Value: 4

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

Generated from protobuf enum LOCATION_MODE_FOREGROUND_ONLY = 4;

LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF

Value: 5

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

Generated from protobuf enum LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5;