MBUsdlRecognizerResult

Objective-C


@interface MBUsdlRecognizerResult : MBRecognizerResult <NSCopying, MBAgeResult>

Swift

class MBUsdlRecognizerResult : MBRecognizerResult, NSCopying, MBAgeResult

A recognizer that can scan PDF417 2D barcodes.

  • The first name of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *firstName;

    Swift

    var firstName: String? { get }
  • The middle name of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *middleName;

    Swift

    var middleName: String? { get }
  • The last name of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *lastName;

    Swift

    var lastName: String? { get }
  • The full name of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *fullName;

    Swift

    var fullName: String? { get }
  • The name suffix of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *nameSuffix;

    Swift

    var nameSuffix: String? { get }
  • The full address of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *address;

    Swift

    var address: String? { get }
  • The date of birth of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MBDateResult *dateOfBirth;

    Swift

    var dateOfBirth: MBDateResult? { get }
  • The date of issue of the United States driver license.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MBDateResult *dateOfIssue;

    Swift

    var dateOfIssue: MBDateResult? { get }
  • The date of expiry of the United States driver license.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MBDateResult *dateOfExpiry;

    Swift

    var dateOfExpiry: MBDateResult? { get }
  • The document number of the United States driver license.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *documentNumber;

    Swift

    var documentNumber: String? { get }
  • sex

    TThe sex of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *sex;

    Swift

    var sex: String? { get }
  • The restrictions to driving privileges for the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *restrictions;

    Swift

    var restrictions: String? { get }
  • The additional privileges granted to the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *endorsements;

    Swift

    var endorsements: String? { get }
  • The type of vehicle the driver license owner has privilege to drive.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *vehicleClass;

    Swift

    var vehicleClass: String? { get }
  • The street address portion of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *street;

    Swift

    var street: String? { get }
  • The postal code address portion of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *postalCode;

    Swift

    var postalCode: String? { get }
  • The city address portion of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *city;

    Swift

    var city: String? { get }
  • The jurisdiction code address portion of the United States driver license owner.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *jurisdiction;

    Swift

    var jurisdiction: String? { get }
  • Byte array with result of the scan

    Declaration

    Objective-C

    - (NSData *_Nullable)data;

    Swift

    func data() -> Data?
  • Flag indicating uncertain scanning data E.g obtained from damaged barcode.

    Declaration

    Objective-C

    - (BOOL)isUncertain;

    Swift

    func isUncertain() -> Bool
  • Returns a string value for a given key.

    Declaration

    Objective-C

    - (NSString *_Nullable)getField:(MBUsdlKeys)usdlKey;

    Swift

    func getField(_ usdlKey: MBUsdlKeys) -> String?

    Parameters

    usdlKey

    field key

    Return Value

    value for a given key

  • Deprecated

    Array of elements that are not part of AAMVA standard and are specific to each US state. If no specific elements existed inside 2D barcode, this is an empty array. Otherwise, this array contains list of state-specific elements in the same order as given inside barcode. NOTE: Size of this array is both state-specific and barcode-specific. Each US state has ability to arbitrarily define size and contents of these elements. You can obtain the as a parameter.

    Declaration

    Objective-C

    - (NSArray<NSString *> *_Nullable)optionalElements;

    Swift

    func optionalElements() -> [String]?