Page Summary
-
BarcodeDriverLicenseis an NSObject class representing driver's license or ID card data. -
It includes properties for personal information like name, gender, address, and birth date.
-
It also contains data about the license/ID itself, such as document type, license number, and expiry date.
-
While it covers many common fields,
BarcodeDriverLicensemight not include all fields present in an ANSI driver's license, requiring use of theBarcode'srawValueproperty for complete access. -
The date formats for birth date, expiry date, and issuing date depend on the issuing country.
BarcodeDriverLicense
class BarcodeDriverLicense : NSObjectA driver’s license or ID card data representation.
An ANSI driver’s license contains more fields than are represented by this class. The Barcode‘s
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 } -
City of the holder’s address.
Declaration
Swift
var addressCity: String? { get } -
State of the holder’s address.
Declaration
Swift
var addressState: String? { get } -
Street of the holder’s address.
Declaration
Swift
var addressStreet: String? { get } -
Zipcode of the holder’s address.
Declaration
Swift
var addressZip: String? { get } -
Holder’s birthday. The date format depends on the issuing country.
Declaration
Swift
var birthDate: String? { get } -
DLfor driver’s licenses,IDfor ID cards.Declaration
Swift
var documentType: String? { get } -
Driver’s license ID number.
Declaration
Swift
var licenseNumber: String? { get } -
Driver’s 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 } -
The country in which the DL/ID was issued.
Declaration
Swift
var issuingCountry: String? { get } -
Unavailable.