Click or drag to resize

LedManagerBlinkLed Method (Led, Int32, Int32, Int32)

Blinking 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 BlinkLed(
	Led id,
	int count,
	int onMS,
	int offMS
)

Parameters

id
Type: Com.Datalogic.Device.NotificationLed
- Specifies which Led to control.
count
Type: SystemInt32
- int value that specifies how many on/off cycles should be performed before the LED is turned off. If set to zero, then the LED is turned off immediately. If set to -1, the LED is cycled until it is explicitly turned off.
onMS
Type: SystemInt32
- int value that specifies how long (in ms) during an on/off cycle the LED should be turned on. If set to zero, the LED is simply turned off.
offMS
Type: SystemInt32
- int range that specifies how long (in ms) during an on/off cycle the LED should be turned off. If set to zero, the LED remains on until all cycles are complete.

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

Blinking led method. This method start blinking a led without blocking the caller thread.

[Android Documentation]

See Also