Click or drag to resize

PowerManagerSetSuspendTimeout Method

This function allows to set the device 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 int SetSuspendTimeout(
	SuspendTimeout timeout,
	bool externalPower
)

Parameters

timeout
Type: Com.Datalogic.Device.PowerSuspendTimeout
- The SuspendTimeout value of the timeout.
externalPower
Type: SystemBoolean
- The boolean value indicating if the timeout is meant for external AC power or for internal battery.

Return Value

Type: Int32
intSuccess in case of success, otherwise a possible error code, matching one of the DeviceException error constants.
Exceptions
ExceptionCondition
DeviceException - in case of error, when exceptions are enabled through the ErrorManager singleton.
Remarks

This function allows to set the device timeout before automatic suspension.

[Android Documentation]

See Also