Google Maps FleetEngine V1 Client - Class DeviceSettings (0.1.3)

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

Information about various settings on the mobile device.

Generated from protobuf message maps.fleetengine.v1.DeviceSettings

Namespace

Google \ Maps \ FleetEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ location_power_save_mode int

How location features are set to behave on the device when battery saver is on.

↳ is_power_save_mode bool

Whether the device is currently in power save mode.

↳ is_interactive bool

Whether the device is in an interactive state.

↳ battery_info Google\Maps\FleetEngine\V1\BatteryInfo

Information about the battery state.

getLocationPowerSaveMode

How location features are set to behave on the device when battery saver is on.

Returns
Type Description
int

setLocationPowerSaveMode

How location features are set to behave on the device when battery saver is on.

Parameter
Name Description
var int
Returns
Type Description
$this

getIsPowerSaveMode

Whether the device is currently in power save mode.

Returns
Type Description
bool

setIsPowerSaveMode

Whether the device is currently in power save mode.

Parameter
Name Description
var bool
Returns
Type Description
$this

getIsInteractive

Whether the device is in an interactive state.

Returns
Type Description
bool

setIsInteractive

Whether the device is in an interactive state.

Parameter
Name Description
var bool
Returns
Type Description
$this

getBatteryInfo

Information about the battery state.

Returns
Type Description
Google\Maps\FleetEngine\V1\BatteryInfo|null

hasBatteryInfo

clearBatteryInfo

setBatteryInfo

Information about the battery state.

Parameter
Name Description
var Google\Maps\FleetEngine\V1\BatteryInfo
Returns
Type Description
$this