VisionBarcodeDriverLicense

class VisionBarcodeDriverLicense : NSObject

A driver license or ID card data representation.

An ANSI driver license contains more fields than are represented by this class. The FIRVisionBarcodes rawValue property can be used to access the other fields.

  • Holder’s first name.

    Declaration

    Swift

    var firstName: String? { get }
  • Holder’s middle name.

    Declaration

    Swift

    var middleName: String? { get }
  • Holder’s last name.

    Declaration

    Swift

    var lastName: String? { get }
  • Holder’s gender. 1 is male and 2 is female.

    Declaration

    Swift

    var gender: String? { get }
  • Holder’s city address.

    Declaration

    Swift

    var addressCity: String? { get }
  • Holder’s state address.

    Declaration

    Swift

    var addressState: String? { get }
  • Holder’s street address.

    Declaration

    Swift

    var addressStreet: String? { get }
  • Holder’s address’ zipcode.

    Declaration

    Swift

    var addressZip: String? { get }
  • Holder’s birthday. The date format depends on the issuing country.

    Declaration

    Swift

    var birthDate: String? { get }
  • DL for driver licenses, ID for ID cards.

    Declaration

    Swift

    var documentType: String? { get }
  • Driver license ID number.

    Declaration

    Swift

    var licenseNumber: String? { get }
  • Driver license expiration date. The date format depends on the issuing country.

    Declaration

    Swift

    var expiryDate: String? { get }
  • The date format depends on the issuing country.

    Declaration

    Swift

    var issuingDate: String? { get }
  • A country in which DL/ID was issued.

    Declaration

    Swift

    var issuingCountry: String? { get }
  • Unavailable.