The Passport class defines the user ID information for all international passports (2-line MRZ).

The DriverLicense class looks like this:

public class DriverLicense extends IdCard {

    public void setFrontImage(Bitmap frontImage, Rect faceRect)
    public Bitmap getFrontImage()
    public Rect getFaceCoordinates()

    public void setBackImage(_ value: UIImage)
    public Bitmap getBackImage() -> UIImage

    public void setFirstName(final String value)
    public String getFirstName()
    public void setMiddleName(final String value)
    public String getMiddleName()
    public void setLastName(final String value)
    public String getLastName()
    public void setGender(final String value)
    public String getGender()
    public void setCountry(final String value)
    public String getCountry()
    public void setNationality(final String value)
    public String getNationality()
    public void setExpirationDate(final String value)
    public String getExpirationDate()
    public void setBirthDate(final String value)
    public String getBirthDate()
    public void setIdNumber(final String value)
    public String getIdNumber()
    public void setPersonalNumber(final String value)
    public String getPersonalNumber()
}

Data model

Property Type Description
frontImage UIImage The complete front image (containing the user’s photo) of the user’s passport.
id_face_coordinate_x Int The x-axis coordinate of the user’s passport photo.
id_face_coordinate_y Int The y-axis coordinate of the user’s passport photo.
id_face_width Int The width of the user’s passport photo.
id_face_height Int The height of the user’s passport photo.
firstName String The user’s first name as shown on the passport.
middleName String The user’s middle name as shown on the passport.
lastName String The user’s last name as shown on the passport.
gender String The user’s gender as shown on the passport.
country String The user’s country of residence as shown on the passport.
nationality String The user’s country of birth as shown on the passport.
issueDate String The issue date of the user’s passport as shown on the passport.
expirationDate String The expiration date of the user’s passport as shown on the passport.
birthDate String The user’s date of birth as shown on the passport.
idNumber String The user’s passport number (2-line MRZ) as shown on the passport.
personalNumber String The user’s personal ID number as shown on the passport.