Click or drag to resize

PowerManagerGetSuspendTimeout Method

This function allows to get the device screen off timeout before automatic suspension.

Namespace:  Com.Datalogic.Device.Power
Assembly:  datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public virtual SuspendTimeout GetSuspendTimeout(
	bool externalPower
)

Parameters

externalPower
Type: SystemBoolean
- The boolean value indicating if the requested timeout is the one running while powered externally or while the only power source is the internal battery.

Return Value

Type: SuspendTimeout
The SuspendTimeout representing the active timeout.
Exceptions
ExceptionCondition
DeviceException - in case of error, when exceptions are enabled through the ErrorManager singleton.
Remarks

This function allows to get the device screen off timeout before automatic suspension.

[Android Documentation]

See Also