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 DEPRECATED_ACTION
           
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.
 
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

DEPRECATED_ACTION

public static final java.lang.String DEPRECATED_ACTION
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 (optional).

See Also:
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