Click or drag to resize

LedManagerSetLed Method (Led, Boolean, Int32)

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,
	int ARGB
)

Parameters

id
Type: Com.Datalogic.Device.NotificationLed
- Specifies which Led to control.
enable
Type: SystemBoolean
- boolean value set to true to enable the LED, while set to false to disable the LED.
ARGB
Type: SystemInt32
- int value that specifies the led color in RGB 24 bits format, following the standard components defined in [!:NoType:http://datalogic.github.io/android-sdk-docs/reference/android/graphics/Color;Href=http://datalogic.github.io/android-sdk-docs/reference/android/graphics/Color.html].

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