sdt.brc.android
Class BarcodeScanDialog

java.lang.Object
  extended by AlertDialog
      extended by sdt.brc.android.BarcodeScanDialog

public class BarcodeScanDialog
extends AlertDialog

The Android popup Dialog which preview the camera and reads barcodes from it. Each time the new barcode is recodnized the OnRecognitionListener.onRecognitionResults will be called.


Constructor Summary
BarcodeScanDialog(Context context, String licenseKey)
           
 
Method Summary
 void setBarcodeTypes(int flag)
          The method set barcode types the barcode reader will look for.
 void setRecognitionListener(OnRecognitionListener listener)
          Assign Listener for receiving events about new recognized barcodes.
 void showActiveArea(boolean show)
          The method enable or disable active scan rectangle visualization over camera preview window.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarcodeScanDialog

public BarcodeScanDialog(Context context,
                         String licenseKey)
Method Detail

setRecognitionListener

public void setRecognitionListener(OnRecognitionListener listener)
Assign Listener for receiving events about new recognized barcodes.

Parameters:
listener - Interface implementation object.

showActiveArea

public void showActiveArea(boolean show)
The method enable or disable active scan rectangle visualization over camera preview window.

Parameters:
show - true to show, false to hide active scan area visualization.

setBarcodeTypes

public void setBarcodeTypes(int flag)
The method set barcode types the barcode reader will look for. By default flag is set to BarcodeReader.SDTBARCODE_ALL_1D | BarcodeReader.SDTBARCODE_ALL_2D

Parameters:
flag - one or combination of the following flags:
BarcodeReader.SDTBARCODE_CODABAR
BarcodeReader.SDTBARCODE_CODABAR
BarcodeReader.SDTBARCODE_CODE128
BarcodeReader.SDTBARCODE_CODE32
BarcodeReader.SDTBARCODE_CODE39
BarcodeReader.SDTBARCODE_CODE93
BarcodeReader.SDTBARCODE_CODE11
BarcodeReader.SDTBARCODE_EAN13
BarcodeReader.SDTBARCODE_EAN8
BarcodeReader.SDTBARCODE_EAN5
BarcodeReader.SDTBARCODE_I2OF5
BarcodeReader.SDTBARCODE_PATCH_CODE
BarcodeReader.SDTBARCODE_POSTNET
BarcodeReader.SDTBARCODE_PLUS2
BarcodeReader.SDTBARCODE_PLUS5
BarcodeReader.SDTBARCODE_UPCA
BarcodeReader.SDTBARCODE_UPCB
BarcodeReader.SDTBARCODE_INTELLIMAIL
BarcodeReader.SDTBARCODE_DATAMATRIX
BarcodeReader.SDTBARCODE_PDF417
BarcodeReader.SDTBARCODE_QRCODE
BarcodeReader.SDTBARCODE_ALL_1D
BarcodeReader.SDTBARCODE_ALL_2D