| 限定符和类型 | 字段和说明 |
|---|---|
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 |
AZTEC_MODE
Decode only Aztec.
|
static java.lang.String |
CAMERA_ID
Optional parameter to specify the id of the camera from which to recognize barcodes.
|
static java.lang.String |
CHARACTER_SET |
static java.lang.String |
DATA_MATRIX_MODE
Decode only Data Matrix codes.
|
static java.lang.String |
FORMATS
Comma-separated list of formats to scan for.
|
static java.lang.String |
HEIGHT |
static java.lang.String |
MODE
By default, sending this will decode all barcodes that we understand.
|
static java.lang.String |
ONE_D_MODE
Decode only 1D barcodes.
|
static java.lang.String |
PDF417_MODE
Decode only PDF417.
|
static java.lang.String |
PRODUCT_MODE
Decode only UPC and EAN barcodes.
|
static java.lang.String |
PROMPT_MESSAGE
Prompt to show on-screen when scanning by intent.
|
static java.lang.String |
QR_CODE_MODE
Decode only QR codes.
|
static java.lang.String |
RESULT
If a barcode is found, Barcodes returns
android.app.Activity#RESULT_OK to
android.app.Activity#onActivityResult(int, int, android.content.Intent)
of the app which requested the scan via
android.app.Activity#startActivityForResult(android.content.Intent, int)
The barcodes contents can be retrieved with
android.content.Intent#getStringExtra(String). |
static java.lang.String |
RESULT_BYTE_SEGMENTS_PREFIX
Prefix for keys that map to the values of
ResultMetadataType.BYTE_SEGMENTS,
if available. |
static java.lang.String |
RESULT_BYTES
Call
android.content.Intent#getByteArrayExtra(String) with RESULT_BYTES
to get a byte[] of raw bytes in the barcode, if available. |
static java.lang.String |
RESULT_DISPLAY_DURATION_MS
Desired duration in milliseconds for which to pause after a successful scan before
returning to the calling intent.
|
static java.lang.String |
RESULT_ERROR_CORRECTION_LEVEL
Key for the value of
ResultMetadataType.ERROR_CORRECTION_LEVEL, if available. |
static java.lang.String |
RESULT_FORMAT
Call
android.content.Intent#getStringExtra(String) with RESULT_FORMAT
to determine which barcode format was found. |
static java.lang.String |
RESULT_ORIENTATION
Key for the value of
ResultMetadataType.ORIENTATION, if available. |
static java.lang.String |
RESULT_UPC_EAN_EXTENSION
Call
android.content.Intent#getStringExtra(String) with RESULT_UPC_EAN_EXTENSION
to return the content of any UPC extension barcode that was also found. |
static java.lang.String |
SAVE_HISTORY
Setting this to false will not save scanned codes in the history.
|
static java.lang.String |
WIDTH
Optional parameters to specify the width and height of the scanning rectangle in pixels.
|
public static final java.lang.String ACTION
public static final java.lang.String MODE
android.content.Intent#putExtra(String, String) with one of the values below.
Setting this is effectively shorthand for setting explicit formats with FORMATS.
It is overridden by that setting.public static final java.lang.String PRODUCT_MODE
public static final java.lang.String ONE_D_MODE
public static final java.lang.String QR_CODE_MODE
public static final java.lang.String DATA_MATRIX_MODE
public static final java.lang.String AZTEC_MODE
public static final java.lang.String PDF417_MODE
public static final java.lang.String FORMATS
BarcodeFormats, e.g. BarcodeFormat.EAN_13.
Example: "EAN_13,EAN_8,QR_CODE". This overrides MODE.public static final java.lang.String CAMERA_ID
public static final java.lang.String CHARACTER_SET
DecodeHintType.CHARACTER_SET,
常量字段值public static final java.lang.String WIDTH
public static final java.lang.String HEIGHT
public static final java.lang.String RESULT_DISPLAY_DURATION_MS
public static final java.lang.String PROMPT_MESSAGE
String.public static final java.lang.String RESULT
android.app.Activity#RESULT_OK to
android.app.Activity#onActivityResult(int, int, android.content.Intent)
of the app which requested the scan via
android.app.Activity#startActivityForResult(android.content.Intent, int)
The barcodes contents can be retrieved with
android.content.Intent#getStringExtra(String).
If the user presses Back, the result code will be android.app.Activity#RESULT_CANCELED.public static final java.lang.String RESULT_FORMAT
android.content.Intent#getStringExtra(String) with RESULT_FORMAT
to determine which barcode format was found.
See BarcodeFormat for possible values.public static final java.lang.String RESULT_UPC_EAN_EXTENSION
android.content.Intent#getStringExtra(String) with RESULT_UPC_EAN_EXTENSION
to return the content of any UPC extension barcode that was also found. Only applicable
to BarcodeFormat.UPC_A and BarcodeFormat.EAN_13
formats.public static final java.lang.String RESULT_BYTES
android.content.Intent#getByteArrayExtra(String) with RESULT_BYTES
to get a byte[] of raw bytes in the barcode, if available.public static final java.lang.String RESULT_ORIENTATION
ResultMetadataType.ORIENTATION, if available.
Call android.content.Intent#getIntArrayExtra(String) with RESULT_ORIENTATION.public static final java.lang.String RESULT_ERROR_CORRECTION_LEVEL
ResultMetadataType.ERROR_CORRECTION_LEVEL, if available.
Call android.content.Intent#getStringExtra(String) with RESULT_ERROR_CORRECTION_LEVEL.public static final java.lang.String RESULT_BYTE_SEGMENTS_PREFIX
ResultMetadataType.BYTE_SEGMENTS,
if available. The actual values will be set under a series of keys formed by adding 0, 1, 2, ...
to this prefix. So the first byte segment is under key "SCAN_RESULT_BYTE_SEGMENTS_0" for example.
Call android.content.Intent#getByteArrayExtra(String) with these keys.public static final java.lang.String SAVE_HISTORY
boolean.