public enum ScanMode extends java.lang.Enum<ScanMode>
ScanMode is an enumeration defining the operating scan
mode.
The type is one of:
| SINGLE | When pressing the trigger (or virtually starting the decoder), the device will scan until a barcode is read, the timeout has been reached or the trigger is released (or the decoder has been virtually stopped) |
| HOLD_MULTIPLE | When pressing the trigger (or virtually starting the decoder), the device will scan continuously until the timeout from the last decoding result has been reached or the trigger is released (or the decoder has been virtually stopped) |
| PULSE_MULTIPLE | Works similarly to HOLD_MULTIPLE but the scan is stopped after releasing and pressing back the trigger. When virtually starting the decoder the behavior is the same as HOLD_MULTIPLE. |
| ALWAYS_ON | The scanning is always enabled when this option is selected |
| Enum Constant and Description |
|---|
ALWAYS_ON
The scanner will be always enabled, scanning continuously.
|
HOLD_MULTIPLE
Multiple scans by keeping the trigger pressed.
|
PULSE_MULTIPLE
Multiple scans until the trigger is released and pressed again.
|
SINGLE
Single scan.
|
| Modifier and Type | Method and Description |
|---|---|
static ScanMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScanMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScanMode SINGLE
public static final ScanMode HOLD_MULTIPLE
public static final ScanMode PULSE_MULTIPLE
public static final ScanMode ALWAYS_ON
public static ScanMode[] values()
for (ScanMode c : ScanMode.values()) System.out.println(c);
public static ScanMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null