The DriverLicense class defines the user ID information for the U.S and most international driver licenses.

The property values are in Raw format as read from the barcode.

DriverLicense class

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 setAddressStreet(final String value)
    public String getAddressStreet()
    public void setAddressCity(final String value)
    public String getAddressCity()
    public void setAddressState(final String value)
    public String getAddressState()
    public void setAddressZip(final String value)
    public String getAddressZip()
    public void setCountry(final String value)
    public String getCountry()
    public void setIssueDate(final String value)
    public String getIssueDate()
    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 setWeight(final String value)
    public String getWeight()
    public void setHeight(final String value)
    public String getHeight()
    public void setHairColor(final String value)
    public String getHairColor()
    public void setEyeColor(final String value)
    public String getEyeColor()

}

Data model

Property Type Description
id_face_coordinate_x Int The x-axis coordinate of the user’s driver license photo.
id_face_coordinate_y Int The y-axis coordinate of the user’s driver license photo.
id_face_width Int The width of the user’s driver license photo.
id_face_height Int The height of the user’s driver license photo.
firstName String The user’s first name as shown on the driver license.
middleName String The user’s middle name as shown on the driver license.
lastName String The user’s last name as shown on the driver license.
gender String The user’s gender as shown on the driver license.
addressStreet String The user’s street address as shown on the driver license.
addressCity String The user’s city of residence as shown on the driver license.
addressState String The user’s state or province of residence as shown on the driver license.
addressZip String The user’s postal code as shown on the driver license.
country String The user’s country of residence as shown on the driver license.
issueDate String The issue date of the user’s driver license as shown on the driver license.
expirationDate String The expiration date of the user’s driver license as shown on the driver license.
birthDate String The user’s date of birth as shown on the driver license.
idNumber String The user’s driver license ID number as shown on the driver license.
weight String The user’s weight as shown on the driver license.
height String The user’s height as shown on the driver license.
hairColor String The user’s hair color as shown on the driver license.
eyeColor String The user’s eye color as shown on the driver license.
frontImage UIImage The complete front image of the user’s driver license.
backImage UIImage The complete back image of the user’s driver license.