Class DataMatchDetailedInfo

  • All Implemented Interfaces:
    android.os.Parcelable

    public class DataMatchDetailedInfo
    extends java.lang.Object
    implements android.os.Parcelable
    Detailed info of a document data match.
    • Method Detail

      • getDataMatchResult

        @NonNull
        public DataMatchResult getDataMatchResult()
        Returns result of the data matching algorithm for scanned parts/sides of the document. For example if date of expiry is scanned from the front and back side of the document and values do not match, this method will return DataMatchResult.Failed. Result will be DataMatchResult.Success only if scanned values for all fields that are compared are the same. If data matching has not been performed, result will be DataMatchResult.NotPerformed.
        Returns:
        result of the data matching algorithm for scanned parts/sides of the document.
      • getDateOfBirth

        @NonNull
        public DataMatchResult getDateOfBirth()
        The result of data match on date of birth field.
        Returns:
        result of the data matching algorithm for date of birth field.
      • getDateOfExpiry

        @NonNull
        public DataMatchResult getDateOfExpiry()
        The result of data match on date of expiry field.
        Returns:
        result of the data matching algorithm for date of expiry field.
      • getDocumentNumber

        @NonNull
        public DataMatchResult getDocumentNumber()
        The result of data match on document number field.
        Returns:
        result of the data matching algorithm for document number field.
      • createFromNative

        @NonNull
        public static DataMatchDetailedInfo createFromNative​(int dataMatchResult,
                                                             int documentNumber,
                                                             int dateOfBirth,
                                                             int dateOfExpiry)
        This method is called from native code to build DataMatchDetailedInfo from native object.
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(@NonNull
                                  android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable