IntentResult (ZXing 3.3.2 API)

com.google.zxing.integration.android

## 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`.

  Author:
    Sean Owen

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getContents()`
    `String` | `getErrorCorrectionLevel()`
    `String` | `getFormatName()`
    `Integer` | `getOrientation()`
    `byte[]` | `getRawBytes()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 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

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2007–2018. All rights reserved.