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
)
Public Overridable Function SetSuspendTimeout (
timeout As SuspendTimeout,
externalPower As Boolean
) As Integer
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:
Int32intSuccess in case of success,
otherwise a possible error code, matching one of the
DeviceException error constants.
Exceptions Remarks See Also