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;