public class ScannerLibrary
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScannerLibrary.CONSTANT
Constant value class
|
static class |
ScannerLibrary.ScanResult
Scan Result class
|
| Constructor and Description |
|---|
ScannerLibrary()
Create a instance of the ScannerLibrary class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
captureImage(byte[] buffer)
Capture the image.
|
int |
closeScanner()
Close the barcode scanner.
Call this function when the application terminates. |
int |
deinitializeStream()
Deinitialization processing for streaming.
|
java.lang.String |
getAPIVersion()
Get the API version.
|
int |
getCenteringWindow()
Get enable/disable of the centering window mode.
|
int |
getDelimiter()
Get the delimiter for Package scan.
|
int |
getDetectionAreaSize()
Get the size of barcode detection area for the centering window mode.
|
int |
getImageDataSize()
Get the size of the data required for capturing image.
|
int |
getInternalParameter(int tag)
Get internal parameters.
Detailed specifications are not disclosed. |
int |
getInternalParameter(int[] tags,
int[] values)
Get internal parameters.
Detailed specifications are not disclosed. |
int |
getInverseMode()
Get the inverse barcode reading mode.
|
int |
getLaserHighlightMode()
Get enable/disable of the laser highlight mode of 1D scanner.
|
int |
getLaserSwingWidth()
Get the laser swing width of 1D scanner.
|
int |
getLightMode()
Get the light mode.
Get the action of Illumination and Aimer behavior when you will scan, capture image, stream. |
java.lang.String |
getModuleVersion()
Get the module version.
|
int |
getNotificationLED()
Get the behavior of the notification LED.
|
int |
getNotificationSound()
Get the the behavior of notification sound.
|
int |
getNotificationVibrator()
Get the behavior of the notification vibrator.
|
int |
getNumberOfBarcodes()
Get the number of barcodes to be scanned in Multi-step scan or Package scan.
|
int |
getOutputType()
Get the output type of the scan result.
|
int |
getScannerAPO()
Get the Auto Power Off(APO) time of the barcode scanner.
|
int |
getScanResult(ScannerLibrary.ScanResult scanResult)
Get the last Scan Result.
|
int |
getStreamDataSize()
Get the size of data required for streaming.
|
int |
getStreamDataSize(android.graphics.Rect rectangle,
int resolution)
Get the size of data required for streaming.
|
int |
getSuffix()
Get the suffix type added at the end of the scan result.
|
int |
getSymbologyCheckCount(int symbologyID)
Get the value of check count of the specified barcode.
|
int |
getSymbologyEnable(int symbologyID)
Get reading enable/disable of the specified barcode.
|
int |
getSymbologyMax(int symbologyID)
Get the reading maximum number of digits of the specified barcode.
|
int |
getSymbologyMaxDefault(int symbologyID)
Get the default reading maximum number of digits of the specified barcode.
|
int |
getSymbologyMin(int symbologyID)
Get the reading minimum number of digits of the specified barcode.
|
int |
getSymbologyMinDefault(int symbologyID)
Get the default reading minimum number of digits of the specified barcode.
|
int |
getSymbologyProperty(int symbologyID,
int propertyNo)
Get the value of property setting of the specified barcode.
|
int |
getTriggerKeyEnable()
Get the trigger key enable/disable.
|
int |
getTriggerKeyMode()
Get the trigger key mode.
|
int |
getTriggerKeyTimeout()
Get the value of trigger key timeout.
|
int |
initializeStream(android.graphics.Rect rectangle,
int resolution)
Initialization processing for streaming.
|
boolean |
isScannerOpen()
Check the barcode scanner is opened.
|
int |
openScanner()
Open the barcode scanner.
Call this function when the application starts. |
int |
readStream(byte[] buffer)
Read the stream data.
To realize preview, call this function continuously. |
int |
setCenteringWindow(int centeringWindow)
Set enable/disable of the centering window mode.
|
int |
setDefaultAll()
Return all barcode scanner settings to default.
|
int |
setDelimiter(int delimiter)
Set the delimiter for Package scan.
|
int |
setDetectionAreaSize(int detectionAreaSize)
Set the size of barcode detection area for the centering window mode.
|
int |
setInternalParameter(byte[] command)
Set internal parameters.
Detailed specifications are not disclosed. |
int |
setInternalParameter(int tag,
int value)
Set internal parameters.
Detailed specifications are not disclosed. |
int |
setInternalParameter(int number,
int[] tags,
int[] values)
Set internal parameters.
Detailed specifications are not disclosed. |
int |
setInverseMode(int inverseMode)
Set the inverse barcode reading mode.
|
int |
setLaserHighlightMode(int enable)
Set enable/disable of the laser highlight mode of 1D scanner.
|
int |
setLaserSwingWidth(int laserSwingWidth)
Set the laser swing width of 1D scanner.
|
int |
setLightMode(int lightMode)
Set the light mode.
|
int |
setNotificationLED(int led)
Set the behavior of the notification LED.
|
int |
setNotificationSound(int sound)
Set the behavior of the notification sound.
|
int |
setNotificationVibrator(int vibrator)
Set the behavior of the notification vibrator.
|
int |
setNumberOfBarcodes(int numberOfBarcodes)
Set the number of barcodes to be scanned in Multi-step scan or Package scan.
|
int |
setOutputType(int outputType)
Set the output type of the scan result.
|
int |
setScannerAPO(int scannerAPOTime)
Set the Auto Power Off(APO) time of the barcode scanner.
|
int |
setSuffix(int suffix)
Set the suffix type added at the end of the scan result.
|
int |
setSymbologyCheckCount(int symbologyID,
int checkCount)
Set the value of check count of the specified barcode.
|
int |
setSymbologyEnable(int symbologyID,
int enable)
Set reading enable/disable of the specified barcode.
|
int |
setSymbologyMax(int symbologyID,
int max)
Set the reading maximum number of digits of the specified barcode.
|
int |
setSymbologyMin(int symbologyID,
int min)
Set the reading minimum number of digits of the specified barcode.
|
int |
setSymbologyProperty(int symbologyID,
int propertyNo,
int propertySetting)
Set the value of property setting of the specified barcode.
|
int |
setTriggerKeyEnable(int triggerKeyEnable)
Set the trigger key enable/disable.
|
int |
setTriggerKeyMode(int triggerKeyMode)
Set the trigger key mode.
|
int |
setTriggerKeyOn(int triggerKeyOn)
Control the behavior of trigger key by software.
|
int |
setTriggerKeyTimeout(int triggerKeyTimeout)
Set the trigger key timeout.
|
int |
startStream()
Start streaming.
|
int |
stopStream()
Stop streaming.
|
int |
turnAimerOn(int aimerOn)
Control the behavior of the aimer by software.
|
int |
turnIlluminationOn(int illuminationOn)
Control the behavior of the illumination by software.
|
public ScannerLibrary()
public int openScanner()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorcloseScanner(),
isScannerOpen()public int closeScanner()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported erroropenScanner(),
isScannerOpen()public boolean isScannerOpen()
openScanner(),
closeScanner()public int setDefaultAll()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorpublic java.lang.String getAPIVersion()
public java.lang.String getModuleVersion()
public int getScanResult(ScannerLibrary.ScanResult scanResult)
ScannerLibrary.ScanResult class for default value.scanResult -
Specify ScannerLibrary.ScanResult class that store Scan Result.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorpublic int setNotificationLED(int led)
led -
The behavior of the notification LED
ScannerLibrary.CONSTANT.NOTIFICATION.LED_OFF : The notification LED not lights up in success and failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.LED_ON : The notification LED turns on GREEN in success scanning, and RED in failure scanningScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetNotificationLED()public int getNotificationLED()
ScannerLibrary.CONSTANT.NOTIFICATION.LED_OFF : The notification LED not lights up in success and failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.LED_ON : The notification LED turns on GREEN in success scanning, and RED in failure scanning (default)
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetNotificationLED(int)public int setNotificationVibrator(int vibrator)
vibrator -
The behavior of the otification vibrator
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_ALL_OFF : The notification vibrator does not vibrate in success and failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_FAIL_ON : The notification vibrator vibrates in failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_SUCCESS_ON : The notification vibrator vibrates in success scanning
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_ALL_ON : The notification vibrator vibrates in success and failure scanningScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetNotificationVibrator()public int getNotificationVibrator()
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_ALL_OFF : The notification vibrator does not vibrate in success and failure scanning (default)
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_FAIL_ON : The notification vibrator vibrates in failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_SUCCESS_ON : The notification vibrator vibrates in success scanning
ScannerLibrary.CONSTANT.NOTIFICATION.VIBRATOR_ALL_ON : The notification vibrator vibrates in success and failure scanning
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetNotificationVibrator(int)public int setNotificationSound(int sound)
sound -
The behavior of the notification sound
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_ALL_OFF : The notification sound does not sounds in success and failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_FAIL_ON : The notification sound sounds in failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_SUCCESS_ON : The notification sound sounds in success scanning
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_ALL_ON : The notification sound sounds in success and failure scanningScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetNotificationSound()public int getNotificationSound()
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_ALL_OFF : The notification sound does not sounds in success and failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_FAIL_ON : The notification sound sounds in failure scanning
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_SUCCESS_ON : The notification sound sounds in success scanning
ScannerLibrary.CONSTANT.NOTIFICATION.SOUND_ALL_ON : The notification sound sounds in success and failure scanning (default)
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetNotificationSound(int)public int setLightMode(int lightMode)
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_ON when scanning.
lightMode -
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_OFF : Illumination and Aimer does not light up
ScannerLibrary.CONSTANT.LIGHT_MODE.AIMER_ON : Aimer lights up
ScannerLibrary.CONSTANT.LIGHT_MODE.ILLUMINATION_ON : Illumination lights up
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_ON : Illumination and Aimer lights upScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetLightMode()public int getLightMode()
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_OFF : Illumination and Aimer does not light up
ScannerLibrary.CONSTANT.LIGHT_MODE.AIMER_ON : Aimer lights up
ScannerLibrary.CONSTANT.LIGHT_MODE.ILLUMINATION_ON : Illumination lights up (default)
ScannerLibrary.CONSTANT.LIGHT_MODE.ALL_ON : Illumination and Aimer lights up
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetLightMode(int)public int turnAimerOn(int aimerOn)
aimerOn -
The behavior of the aimer.
ScannerLibrary.CONSTANT.CONTROL.AIMER_OFF : Aimer is turned off.
ScannerLibrary.CONSTANT.CONTROL.AIMER_ON : Aimer is turned on.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorpublic int turnIlluminationOn(int illuminationOn)
illuminationOn -
The behavior of the illumination.
ScannerLibrary.CONSTANT.CONTROL.ILLUMINATION_OFF : Illumination is turned off.
ScannerLibrary.CONSTANT.CONTROL.ILLUMINATION_ON : Illumination is turned on.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorpublic int getImageDataSize()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorcaptureImage(byte[])public int captureImage(byte[] buffer)
buffer -
Image bufferScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported error
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : Not opened errorgetImageDataSize()public int getStreamDataSize()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorreadStream(byte[])public int getStreamDataSize(android.graphics.Rect rectangle,
int resolution)
rectangle -
Sreaming arearesolution -
ResolutionScannerLibrary.CONSTANT.RESOLUTION.FULL : Full resolution.
ScannerLibrary.CONSTANT.RESOLUTION.QUARTER : 1/4 resolution.
ScannerLibrary.CONSTANT.RESOLUTION.ONE_SIXTEENTH : 1/16 resolution.ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorreadStream(byte[])public int initializeStream(android.graphics.Rect rectangle,
int resolution)
rectangle -
Sreaming arearesolution -
ResolutionScannerLibrary.CONSTANT.RESOLUTION.FULL : Full resolution.
ScannerLibrary.CONSTANT.RESOLUTION.QUARTER : 1/4 resolution.
ScannerLibrary.CONSTANT.RESOLUTION.ONE_SIXTEENTH : 1/16 resolution.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errordeinitializeStream()public int startStream()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorreadStream(byte[]),
stopStream()public int readStream(byte[] buffer)
buffer -
A buffer to store stream data.ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorstartStream(),
stopStream(),
getStreamDataSize(),
getStreamDataSize(Rect, int)public int stopStream()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorstartStream(),
readStream(byte[])public int deinitializeStream()
ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorinitializeStream(Rect, int)public int setSymbologyEnable(int symbologyID,
int enable)
symbologyID -
Specify the SymbologyID of each barcode.ScannerLibrary.CONSTANT.SYMBOLOGY.ALL is specified, all barcodes are enabled/disabled.
ScannerLibrary.CONSTANT.SYMBOLOGYenable -
Reading enable/disable
ScannerLibrary.CONSTANT.SYMBOLOGY_PARAMETER.DISABLE : Read disable
ScannerLibrary.CONSTANT.SYMBOLOGY_PARAMETER.ENABLE : Read enableScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetSymbologyEnable(int)public int getSymbologyEnable(int symbologyID)
symbologyID -
Specify the SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.SYMBOLOGY_PARAMETER.DISABLE : Read disable
ScannerLibrary.CONSTANT.SYMBOLOGY_PARAMETER.ENABLE : Read enable
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetSymbologyEnable(int, int)public int getSymbologyMaxDefault(int symbologyID)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetSymbologyMinDefault(int)public int getSymbologyMinDefault(int symbologyID)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetSymbologyMaxDefault(int)public int setSymbologyMax(int symbologyID,
int max)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYmax -
The reading maximum number of digits.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetSymbologyMax(int)public int getSymbologyMax(int symbologyID)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetSymbologyMax(int, int)public int setSymbologyMin(int symbologyID,
int min)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYmin -
The reading minimum number of digits.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetSymbologyMin(int)public int getSymbologyMin(int symbologyID)
symbologyID -
Specify SymbologyID of each barcode.ScannerLibrary.CONSTANT.SYMBOLOGY.ALL is specified, all barcodes are enabled/disabled.
ScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetSymbologyMin(int, int)public int setSymbologyCheckCount(int symbologyID,
int checkCount)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYcheckCount -
Specify the check count.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetSymbologyCheckCount(int)public int getSymbologyCheckCount(int symbologyID)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetSymbologyCheckCount(int, int)public int setSymbologyProperty(int symbologyID,
int propertyNo,
int propertySetting)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYpropertyNo -
Specify the property number.propertySetting -
Set the property setting value.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetSymbologyProperty(int, int)public int getSymbologyProperty(int symbologyID,
int propertyNo)
symbologyID -
Specify SymbologyID of each barcode.
ScannerLibrary.CONSTANT.SYMBOLOGYpropertyNo -
Specify the property number.ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetSymbologyProperty(int, int, int)public int setOutputType(int outputType)
outputType -
The output type of the scan result
ScannerLibrary.CONSTANT.OUTPUT.CLIP : Clipboard output
ScannerLibrary.CONSTANT.OUTPUT.KEY : Keyboard output
ScannerLibrary.CONSTANT.OUTPUT.USER : User message output
ScannerLibrary.CONSTANT.OUTPUT.BROADCAST : Broadcast outputScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetOutputType()public int getOutputType()
ScannerLibrary.CONSTANT.OUTPUT.CLIP : Clipboard output (default)
ScannerLibrary.CONSTANT.OUTPUT.KEY : Keyboard output
ScannerLibrary.CONSTANT.OUTPUT.USER : User message output
ScannerLibrary.CONSTANT.OUTPUT.BROADCAST : Broadcast output
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetOutputType(int)public int setSuffix(int suffix)
suffix -
The suffix to be added.
ScannerLibrary.CONSTANT.SUFFIX.NONE No suffix
ScannerLibrary.CONSTANT.SUFFIX.LF Suffix is LF(0x0A)
ScannerLibrary.CONSTANT.SUFFIX.TAB Suffix is TAB(0x09)
ScannerLibrary.CONSTANT.SUFFIX.TAB_LF Suffix is TAB+LF(0x09, 0x0A)ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetSuffix()public int getSuffix()
ScannerLibrary.CONSTANT.SUFFIX.NONE : No suffix (default)
ScannerLibrary.CONSTANT.SUFFIX.LF : Suffix is LF(0x0A)
ScannerLibrary.CONSTANT.SUFFIX.TAB : Suffix is TAB(0x09)
ScannerLibrary.CONSTANT.SUFFIX.TAB_LF : Suffix is TAB+LF(0x09, 0x0A)
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetSuffix(int)public int setInverseMode(int inverseMode)
inverseMode -
The inverse barcode reading mode.
ScannerLibrary.CONSTANT.INVERSE.DISABLE : Only Normal barcode can read
ScannerLibrary.CONSTANT.INVERSE.ENABLE : Only Inverse barcode can read
ScannerLibrary.CONSTANT.INVERSE.AUTO : Normal and Inverse barcode can readScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetInverseMode()public int getInverseMode()
ScannerLibrary.CONSTANT.INVERSE.DISABLE : Only Normal barcode can read (default)
ScannerLibrary.CONSTANT.INVERSE.ENABLE : Only Inverse barcode can read
ScannerLibrary.CONSTANT.INVERSE.AUTO : Normal and Inverse barcode can read
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetInverseMode(int)public int setTriggerKeyEnable(int triggerKeyEnable)
triggerKeyEnable -
The trigger key enable/disable.
ScannerLibrary.CONSTANT.TRIGGERKEY.DISABLE : The trigger key disable
ScannerLibrary.CONSTANT.TRIGGERKEY.ENABLE : The trigger key enableScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetTriggerKeyEnable()public int getTriggerKeyEnable()
ScannerLibrary.CONSTANT.TRIGGERKEY.DISABLE : The trigger key disable
ScannerLibrary.CONSTANT.TRIGGERKEY.ENABLE : The trigger key enable (default)
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetTriggerKeyEnable(int)public int setTriggerKeyMode(int triggerKeyMode)
triggerKeyMode -
The trigger key mode
ScannerLibrary.CONSTANT.TRIGGER_MODE.NORMAL : Normal Scan
ScannerLibrary.CONSTANT.TRIGGER_MODE.CONTINUOUS : Continuous Scan
ScannerLibrary.CONSTANT.TRIGGER_MODE.MULTI_STEP : Multi-step Scan
ScannerLibrary.CONSTANT.TRIGGER_MODE.PACKAGE : Package ScanScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetTriggerKeyMode()public int getTriggerKeyMode()
ScannerLibrary.CONSTANT.TRIGGER_MODE.NORMAL : Normal Scan (default)
ScannerLibrary.CONSTANT.TRIGGER_MODE.CONTINUOUS : Continuous Scan
ScannerLibrary.CONSTANT.TRIGGER_MODE.MULTI_STEP : Multi-step Scan
ScannerLibrary.CONSTANT.TRIGGER_MODE.PACKAGE : Package Scan
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetTriggerKeyMode(int)public int setNumberOfBarcodes(int numberOfBarcodes)
numberOfBarcodes -
The number of barcodes to be scanned in Multi-step scan or Package scan.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetNumberOfBarcodes()public int getNumberOfBarcodes()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetNumberOfBarcodes(int)public int setDelimiter(int delimiter)
delimiter -
The delimiter for Package scan.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetDelimiter()public int getDelimiter()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetNumberOfBarcodes(int)public int setTriggerKeyTimeout(int triggerKeyTimeout)
triggerKeyTimeout -
The trigger key timeout.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetTriggerKeyTimeout()public int getTriggerKeyTimeout()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetTriggerKeyTimeout(int)public int setTriggerKeyOn(int triggerKeyOn)
triggerKeyOn -
The behavior of trigger key.
ScannerLibrary.CONSTANT.CONTROL.TRIGGER_OFF : Trigger key is released virtually.
ScannerLibrary.CONSTANT.CONTROL.TRIGGER_ON : Trigger key is pressed virtually.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorpublic int setScannerAPO(int scannerAPOTime)
scannerAPOTime -
The APO time of the barcode scanner.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetScannerAPO()public int getScannerAPO()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetScannerAPO(int)public int setCenteringWindow(int centeringWindow)
centeringWindow -
Enable/disable of the centering window mode.
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.DISABLE : Centering window mode disable
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.ENABLE : Centering window mode enableScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetCenteringWindow()public int getCenteringWindow()
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.DISABLE : Centering window mode disable (default)
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.ENABLE : Centering window mode enable
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetCenteringWindow(int)public int setDetectionAreaSize(int detectionAreaSize)
detectionAreaSize -
The size of barcode detection area for the centering window mode.ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetDetectionAreaSize()public int getDetectionAreaSize()
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetDetectionAreaSize(int)public int setLaserSwingWidth(int laserSwingWidth)
laserSwingWidth -
The laser swing width
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.DISABLE : Swing width maximum (default)
ScannerLibrary.CONSTANT.SWING_WIDTH.WIDE : Swing width wide
ScannerLibrary.CONSTANT.SWING_WIDTH.MIDDLE : Swing width middle
ScannerLibrary.CONSTANT.SWING_WIDTH.NARROW : Swing width narrowScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetLaserSwingWidth()public int getLaserSwingWidth()
ScannerLibrary.CONSTANT.CENTERING_WINDOW_MODE.DISABLE : Swing width maximum (default)
ScannerLibrary.CONSTANT.SWING_WIDTH.WIDE : Swing width wide
ScannerLibrary.CONSTANT.SWING_WIDTH.MIDDLE : Swing width middle
ScannerLibrary.CONSTANT.SWING_WIDTH.NARROW : Swing width narrow
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetLaserSwingWidth(int)public int setLaserHighlightMode(int enable)
enable -
Enable/disable of the laser highlight mode
ScannerLibrary.CONSTANT.LASER_HIGHLIGHT_MODE.DISABLE : Laser highlight mode disable (default)
ScannerLibrary.CONSTANT.LASER_HIGHLIGHT_MODE.ENABLE : Laser highlight mode enableScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorgetLaserHighlightMode()public int getLaserHighlightMode()
ScannerLibrary.CONSTANT.LASER_HIGHLIGHT_MODE.DISABLE : Laser highlight mode disable (default)
ScannerLibrary.CONSTANT.LASER_HIGHLIGHT_MODE.ENABLE : Laser highlight mode enable
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported errorsetLaserHighlightMode(int)public int setInternalParameter(byte[] command)
command - ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported error
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : Not opened errorpublic int setInternalParameter(int tag,
int value)
tag - value - ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported error
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : Not opened errorgetInternalParameter(int)public int setInternalParameter(int number,
int[] tags,
int[] values)
number - tags - values - ScannerLibrary.CONSTANT.RETURN.SUCCESS : Success
ScannerLibrary.CONSTANT.RETURN.ERROR_PARAMETER : Parameter error
ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported error
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : Not opened errorgetInternalParameter(int)public int getInternalParameter(int tag)
tag - ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported error
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : Not opened errorsetInternalParameter(int, int)public int getInternalParameter(int[] tags,
int[] values)
tags - values - ScannerLibrary.CONSTANT.RETURN.ERROR_UNSUPPORTED : Unsupported error
ScannerLibrary.CONSTANT.RETURN.ERROR_NOTOPENED : Not opened errorsetInternalParameter(int, int)