Class IntentResult
- java.lang.Object
-
- com.google.zxing.integration.android.IntentResult
-
public final class IntentResult extends Object
Encapsulates the result of a barcode scan invoked through
IntentIntegrator.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBarcodeImagePath()StringgetContents()StringgetErrorCorrectionLevel()StringgetFormatName()IntegergetOrientation()IntentgetOriginalIntent()byte[]getRawBytes()StringtoString()
-
-
-
Method Detail
-
getContents
public String getContents()
- Returns:
- raw content of barcode
-
getFormatName
public String getFormatName()
- Returns:
- name of format, like "QR_CODE", "UPC_A". See
BarcodeFormatfor more format names.
-
getRawBytes
public byte[] getRawBytes()
- Returns:
- raw bytes of the barcode content, if applicable, or null otherwise
-
getOrientation
public Integer getOrientation()
- Returns:
- rotation of the image, in degrees, which resulted in a successful scan. May be null.
-
getErrorCorrectionLevel
public String getErrorCorrectionLevel()
- Returns:
- name of the error correction level used in the barcode, if applicable
-
getBarcodeImagePath
public String getBarcodeImagePath()
- Returns:
- path to a temporary file containing the barcode image, if applicable, or null otherwise
-
getOriginalIntent
public Intent getOriginalIntent()
- Returns:
- the original intent
-
-