java.lang.Object
com.microblink.photopay.entities.Entity.Result
com.microblink.photopay.entities.recognizers.Recognizer.Result
com.microblink.photopay.entities.recognizers.blinkbarcode.barcode.BarcodeRecognizer.Result
All Implemented Interfaces:
android.os.Parcelable
Enclosing class:
BarcodeRecognizer

public static final class BarcodeRecognizer.Result extends Recognizer.Result
  • Field Details

  • Constructor Details

    • Result

      protected Result(long nativeResult)
  • Method Details

    • getBarcodeType

      @NonNull public BarcodeType getBarcodeType()
      The format of the scanned barcode.
    • getRawData

      @NonNull public byte[] getRawData()
      The raw bytes contained inside barcode.
    • isUncertain

      public boolean isUncertain()
      True if returned result is uncertain, i.e. if scanned barcode was incomplete (i.e. (has parts of it missing).
    • getStringData

      @NonNull public String getStringData()
      String representation of data inside barcode.
    • toString

      @NonNull public String toString()
      Overrides:
      toString in class Object
      Returns:
      string version of this result
    • serializeToByteArray

      @Nullable protected byte[] serializeToByteArray()
      Specified by:
      serializeToByteArray in class Entity.Result
    • deserializeFromByteArray

      protected void deserializeFromByteArray(@NonNull byte[] arr)
      Specified by:
      deserializeFromByteArray in class Entity.Result
    • clone

      public BarcodeRecognizer.Result clone()
      Description copied from class: Entity.Result
      Create a copy of the result. This is required in order to retain the result even after owning entity has mutated it.
      Specified by:
      clone in class Recognizer.Result
      Returns:
      a copy of the result
    • terminateNative

      protected void terminateNative(long nativeContext)
      Specified by:
      terminateNative in class Entity.Result