to top
Datalogic APIs
public final enum

Led

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.notification.Led

Class Overview

The Led enumeration lists the LED type identifiers can be used to manage the LEDs on the device with LedManager interface.

Depending on the device, LEDs can be single-color, two-color (red and green) or RGB.
Moreover, some of the LEDs defined by this interface could be not supported in some devices.

NOTE: SDK v1.38 introduced the LED_SCANNER as interface extension of LED_GOOD_READ. So, even when they are both supported, they refer to the same physical LED.

For further details on how to manage LEDs, refer to the comprehensive SDK examples:

  • Source code in Java (NotificationActivity.java)
  • Source code in Kotlin (NotificationActivity.kt)

Summary

Enum Values
Led  LED_GOOD_READ  This field is deprecated. Deprecated in SDK v1.38. If supported, LED_SCANNER should be used instead.  
Led  LED_GREEN_SPOT  Green Spot LED is the scan engine GreenSpot™ LED projected on the decoded barcode used by the decoder to notify the good read event (typically it is as single color green LED). 
Led  LED_NOTIFICATION  Notification LED is the general LED used for Android notifications (typically it is an rgb LED)  
Led  LED_SCANNER  Scanner LED is the LED used by the decoder to notify scanning in progress or the good read event (typically it is a bicolor red/green LED). 
Public Methods
static Led valueOf(String name)
final static Led[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Led LED_GOOD_READ

Added in revision 1

This field is deprecated.
Deprecated in SDK v1.38. If supported, LED_SCANNER should be used instead.

Good read LED is the LED used by the decoder to notify the good read event (typically it is as single color green LED).

public static final Led LED_GREEN_SPOT

Added in revision 1

Green Spot LED is the scan engine GreenSpot™ LED projected on the decoded barcode used by the decoder to notify the good read event (typically it is as single color green LED).

public static final Led LED_NOTIFICATION

Added in revision 1

Notification LED is the general LED used for Android notifications (typically it is an rgb LED)

public static final Led LED_SCANNER

Added in revision 38

Scanner LED is the LED used by the decoder to notify scanning in progress or the good read event (typically it is a bicolor red/green LED).

Public Methods

public static Led valueOf (String name)

Added in revision 1

public static final Led[] values ()

Added in revision 1