Class BarcodeResult


  • public final class BarcodeResult
    extends java.lang.Object
    Contains data extracted from the barcode.
    • Constructor Detail

      • BarcodeResult

        public BarcodeResult​(long nativeContext,
                             @Nullable
                             java.lang.Object keep)
        Parameters:
        nativeContext - Native barcode result.
        keep - Owner of the native barcode result.
    • Method Detail

      • 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 java.lang.String getStringData()
        String representation of data inside barcode.
      • getRawData

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

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

        @NonNull
        public java.lang.String getFirstName()
        The first name of the document owner.
      • getLastName

        @NonNull
        public java.lang.String getLastName()
        The last name of the document owner.
      • getFullName

        @NonNull
        public java.lang.String getFullName()
        The full name of the document owner.
      • getMiddleName

        @NonNull
        public java.lang.String getMiddleName()
        The middle name of the document owner.
      • getAdditionalNameInformation

        @NonNull
        public java.lang.String getAdditionalNameInformation()
        The additional name information of the document owner.
      • getAddress

        @NonNull
        public java.lang.String getAddress()
        The address of the document owner.
      • getStreet

        @NonNull
        public java.lang.String getStreet()
        The address street portion of the document owner.
      • getPostalCode

        @NonNull
        public java.lang.String getPostalCode()
        The address postal code portion of the document owner.
      • getCity

        @NonNull
        public java.lang.String getCity()
        The address city portion of the document owner.
      • getJurisdiction

        @NonNull
        public java.lang.String getJurisdiction()
        The address jurisdiction code portion of the document owner.
      • getPlaceOfBirth

        @NonNull
        public java.lang.String getPlaceOfBirth()
        The place of birth of the document owner.
      • getNationality

        @NonNull
        public java.lang.String getNationality()
        The nationality of the document owner.
      • getRace

        @NonNull
        public java.lang.String getRace()
        The race of the document owner.
      • getReligion

        @NonNull
        public java.lang.String getReligion()
        The religion of the document owner.
      • getProfession

        @NonNull
        public java.lang.String getProfession()
        The profession of the document owner.
      • getMaritalStatus

        @NonNull
        public java.lang.String getMaritalStatus()
        The marital status of the document owner.
      • getResidentialStatus

        @NonNull
        public java.lang.String getResidentialStatus()
        The residential status of the document owner.
      • getEmployer

        @NonNull
        public java.lang.String getEmployer()
        The employer of the document owner.
      • getSex

        @NonNull
        public java.lang.String getSex()
        The sex of the document owner.
      • getDateOfBirth

        @NonNull
        public DateResult getDateOfBirth()
        The date of birth of the document owner.
      • getDateOfIssue

        @NonNull
        public DateResult getDateOfIssue()
        The date of issue of the document.
      • getDateOfExpiry

        @NonNull
        public DateResult getDateOfExpiry()
        The date of expiry of the document.
      • getDocumentNumber

        @NonNull
        public java.lang.String getDocumentNumber()
        The document number.
      • getPersonalIdNumber

        @NonNull
        public java.lang.String getPersonalIdNumber()
        The personal identification number.
      • getDocumentAdditionalNumber

        @NonNull
        public java.lang.String getDocumentAdditionalNumber()
        The additional number of the document.
      • getIssuingAuthority

        @NonNull
        public java.lang.String getIssuingAuthority()
        The issuing authority of the document.
      • getDriverLicenseDetailedInfo

        @NonNull
        public DriverLicenseDetailedInfo getDriverLicenseDetailedInfo()
        The driver license detailed info.
      • getExtendedElements

        @NonNull
        public BarcodeElements getExtendedElements()
        Document specific extended elements that contain all barcode fields in their original form. Currently this is only filled for AAMVACompliant documents.
      • isEmpty

        @NonNull
        public boolean isEmpty()
        Flag which indicates whether this result is empty or not.