com.google.zxing.client.android
Class Intents.Scan

java.lang.Object
  extended by com.google.zxing.client.android.Intents.Scan
Enclosing class:
Intents

public static final class Intents.Scan
extends java.lang.Object


Field Summary
static java.lang.String ACTION
          Send this intent to open the Barcodes app in scanning mode, find a barcode, and return the results.
static java.lang.String CHARACTER_SET
           
static java.lang.String MODE
          By default, sending Scan.ACTION will decode all barcodes that we understand.
static java.lang.String ONE_D_MODE
          Decode only 1D barcodes (currently UPC, EAN, Code 39, and Code 128).
static java.lang.String PRODUCT_MODE
          Decode only UPC and EAN barcodes.
static java.lang.String QR_CODE_MODE
          Decode only QR codes.
static java.lang.String RESULT
          If a barcode is found, Barcodes returns RESULT_OK to onActivityResult() of the app which requested the scan via startSubActivity().
static java.lang.String RESULT_FORMAT
          Call intent.getStringExtra(RESULT_FORMAT) to determine which barcode format was found.
static java.lang.String SAVE_HISTORY
          Setting this to false will not save scanned codes in the history.
static java.lang.String SCAN_FORMATS
          Comma-separated list of formats to scan for.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION

public static final java.lang.String ACTION
Send this intent to open the Barcodes app in scanning mode, find a barcode, and return the results.

See Also:
Constant Field Values

MODE

public static final java.lang.String MODE
By default, sending Scan.ACTION will decode all barcodes that we understand. However it may be useful to limit scanning to certain formats. Use Intent.putExtra(MODE, value) with one of the values below (PRODUCT_MODE, ONE_D_MODE, QR_CODE_MODE). Optional. Setting this is effectively shorthnad for setting explicit formats with SCAN_FORMATS. It is overridden by that setting.

See Also:
Constant Field Values

SCAN_FORMATS

public static final java.lang.String SCAN_FORMATS
Comma-separated list of formats to scan for. The values must match the names of BarcodeFormats, such as BarcodeFormat.EAN_13. Example: "EAN_13,EAN_8,QR_CODE" This overrides MODE.

See Also:
Constant Field Values

CHARACTER_SET

public static final java.lang.String CHARACTER_SET
See Also:
DecodeHintType.CHARACTER_SET, Constant Field Values

PRODUCT_MODE

public static final java.lang.String PRODUCT_MODE
Decode only UPC and EAN barcodes. This is the right choice for shopping apps which get prices, reviews, etc. for products.

See Also:
Constant Field Values

ONE_D_MODE

public static final java.lang.String ONE_D_MODE
Decode only 1D barcodes (currently UPC, EAN, Code 39, and Code 128).

See Also:
Constant Field Values

QR_CODE_MODE

public static final java.lang.String QR_CODE_MODE
Decode only QR codes.

See Also:
Constant Field Values

RESULT

public static final java.lang.String RESULT
If a barcode is found, Barcodes returns RESULT_OK to onActivityResult() of the app which requested the scan via startSubActivity(). The barcodes contents can be retrieved with intent.getStringExtra(RESULT). If the user presses Back, the result code will be RESULT_CANCELED.

See Also:
Constant Field Values

RESULT_FORMAT

public static final java.lang.String RESULT_FORMAT
Call intent.getStringExtra(RESULT_FORMAT) to determine which barcode format was found. See Contents.Format for possible values.

See Also:
Constant Field Values

SAVE_HISTORY

public static final java.lang.String SAVE_HISTORY
Setting this to false will not save scanned codes in the history.

See Also:
Constant Field Values