MLKitBarcodeScanning 框架参考

MLKBarcodeDriverLicense


@interface MLKBarcodeDriverLicense : NSObject

驾照或身份证数据表示。

ANSI 驾照包含的字段超出了该类所表示的字段。BarcoderawValue 属性可用于访问其他字段。

  • 持有人的名字。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *firstName;
  • 持有人的中间名。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *middleName;
  • 持有人的姓氏。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *lastName;
  • 持有人的性别。1 表示男性,2 表示女性。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *gender;
  • 持有人所在城市。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressCity;
  • 持有人地址所在的州/省/自治区/直辖市。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressState;
  • 持有人地址所在的街道。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressStreet;
  • 持有人地址的邮政编码。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *addressZip;
  • 持有人生日。日期格式取决于签发国家/地区。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *birthDate;
  • DL 代表驾照,ID 代表身份证。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *documentType;
  • 驾照 ID 号码。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *licenseNumber;
  • 驾照失效日期。日期格式取决于签发国家/地区。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *expiryDate;
  • 日期格式取决于签发国家/地区。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *issuingDate;
  • DL/ID 的签发国家/地区。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *issuingCountry;
  • 不可用。

    声明

    Objective-C

    - (nonnull instancetype)init;