public interface BarCodeReader
Modifier and Type | Interface and Description |
---|---|
static interface |
BarCodeReader.BarcodeReadCallback
Callback invoked when a barcode is scanned
|
Modifier and Type | Method and Description |
---|---|
void |
beep(BeepType beepType)
This method allows the application to set the BeepType for the Bar Code Reader.
|
java.lang.String |
getFirmwareVersion()
This method returns the Firmware Version installed on Bar Code reader.
|
java.lang.String |
getModelName()
This method returns the Bar Code Model Name as a string.
|
Status |
getStatus()
This method returns the enable/disable status of the Bar Code Reader.
|
boolean |
isKbMode()
This method determines if the Barcode reader is in keyboard mode
|
byte[] |
sendCommand(byte[] command)
Send a command to the barcode scanner, and return the result.
|
void |
setBarcodeReadCallback(BarCodeReader.BarcodeReadCallback callback)
Sets or clears the callback that is invoked when the barcode scanner reads a code.
|
void |
setEnabled(boolean enabled)
This method is used to enable or disable Bar Code reader.
|
void |
setKbMode()
This method sets the Barcode reader into keyboard mode
|
void |
setTriggerMode(TriggerMode triggerMode)
This method allows the Application to set the Trigger Mode for the Bar Code reader.
|
void setEnabled(boolean enabled)
BcrEnableControl
,
provided by the Inventory
class, for details of what level
of enable control is availableenabled
- Status getStatus()
Status
java.lang.String getModelName()
EloPlatform
java.lang.String getFirmwareVersion() throws UnsupportedPeripheralMethodException
UnsupportedPeripheralMethodException
void setTriggerMode(TriggerMode triggerMode)
triggerMode
- Trigger mode to setTriggerMode
void beep(BeepType beepType)
beepType
- BeepType
void setKbMode()
boolean isKbMode()
void setBarcodeReadCallback(BarCodeReader.BarcodeReadCallback callback)
callback
- Callback to be invoked, or null to clearbyte[] sendCommand(byte[] command)
command
- ASCII string of bytes to be sent as the command. It is assumed that the length
of the command is equal to the size of the byte[] array passed in.