FirebaseMLVision Framework Reference

FIRVisionBarcodeDriverLicense


@interface FIRVisionBarcodeDriverLicense : 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

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *firstName;
  • Holder’s middle name.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *middleName;
  • Holder’s last name.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *lastName;
  • Holder’s gender. 1 is male and 2 is female.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *gender;
  • Holder’s city address.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressCity;
  • Holder’s state address.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressState;
  • Holder’s street address.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressStreet;
  • Holder’s address’ zipcode.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressZip;
  • Holder’s birthday. The date format depends on the issuing country.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *birthDate;
  • “DL” for driver licenses, “ID” for ID cards.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *documentType;
  • Driver license ID number.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *licenseNumber;
  • Driver license expiration date. The date format depends on the issuing country.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *expiryDate;
  • The date format depends on the issuing country.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *issuingDate;
  • A country in which DL/ID was issued.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *issuingCountry;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;