public class ScanManager
extends java.lang.Object
Use steps
1. Register broadcast to receive scan results
2. Turn on scanning
3. Set broadcast output mode
4. Set barcode output item
5. Trigger scanning
6. Receive scanning results
7. Stop scanning
8. Turn off scanning
| Constructor and Description |
|---|
ScanManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
closeScanner()
Turn off scanning
|
void |
enableAllSYM(boolean enable)
Turn on or off all barcodes
|
static ScanManager |
getDefaultInstance(Context context)
Get scan instance
|
int |
getOPMode()
Gets the current output mode
|
int[] |
getSYMValueInts(int[] paramIDList)
Get barcode type output item
|
boolean |
openScanner()
Open scan
|
void |
setContinueScan(boolean enable)
Set continuous scan switch
|
void |
setOPMode(int mode)
Set output mode
|
void |
setSYMValueInts(int[] paramIDList,
int[] symValueList)
For details of setting barcode type output item parameters, refer to the Decoderconfigvalues class Paramid Symbologid under SDK
|
boolean |
startDecode()
Start scanning
|
boolean |
stopDecode()
Stop scanning
|
public static ScanManager getDefaultInstance(Context context)
context - contextpublic boolean openScanner()
public boolean closeScanner()
public boolean startDecode()
public boolean stopDecode()
public void setContinueScan(boolean enable)
enable - true:open false closepublic void setOPMode(int mode)
mode - 0: broadcast mode, 1: input box mode, 2: keyboard mode, 3:single input box mode, 4:clipboardpublic int getOPMode()
public void setSYMValueInts(int[] paramIDList,
int[] symValueList)
paramIDList - set an optionsymValueList - Option itempublic int[] getSYMValueInts(int[] paramIDList)
paramIDList - set an optionpublic void enableAllSYM(boolean enable)
enable - true:open, false:close