DLCradleManagerSetLed Method |
Sets the state of a specific LED on the cradle.
Namespace:
Com.Datalogic.Decode
Assembly:
datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0
(1.0.0.0)
Syntax
public virtual bool SetLed (Com.Datalogic.Cradle.CradleLed ledId, int colorARGB, bool enable);
Public Virtual Boolean SetLed (Com.Datalogic.Cradle.CradleLed ledId, Integer colorARGB, Boolean enable);
Parameters
- ledId
- Type: Com.Datalogic.Cradle.CradleLed
The CradleLed representing the LED to be controlled. - colorARGB
- Type: System.Int32
The ARGB color value to set for the LED. - enable
- Type: System.Boolean
true to enable the LED, false to disable it.
Return Value
Type: System.Boolean
true if the operation was successful, false otherwise.
Remarks
Sets the state of a specific LED on the cradle.
This method allows enabling or disabling a specific LED identified by its ID.
The LED color can also be set using an ARGB value.
[Android Documentation]
See Also