Click or drag to resize

LedManagerSetLed Method (Led, Boolean)

Setting led method.

Namespace:  Com.Datalogic.Device.Notification
Assembly:  datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public virtual int SetLed(
	Led id,
	bool enable
)

Parameters

id
Type: Com.Datalogic.Device.NotificationLed
- Specifies which Led to control.
enable
Type: SystemBoolean
- A boolean value set to true that enables the LED and a value of false that disables the LED.

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

Setting led method. This method turns on or off a led without blocking the caller thread.

[Android Documentation]

See Also