Class IntentResult


  • public final class IntentResult
    extends Object

    Encapsulates the result of a barcode scan invoked through IntentIntegrator.

    • 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 BarcodeFormat for 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