Tài liệu tham khảo về khung MLKitBarcodeScanning

MLKBarcodeContactInfo


@interface MLKBarcodeContactInfo : NSObject

Danh thiếp của một người hoặc tổ chức. API này có thể đến từ nhiều định dạng cơ bản, bao gồm cả VCARDMECARD.

Đối tượng này đại diện cho chế độ xem đơn giản về danh thiếp có thể có. Nếu cần quyền truy cập không tổn hao vào thông tin trong mã vạch, bạn nên tự phân tích cú pháp dữ liệu thô. Để truy cập vào dữ liệu thô, hãy dùng thuộc tính rawValue của Barcode.

  • Địa chỉ của một cá nhân hoặc tổ chức.

    Khai báo

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<MLKBarcodeAddress *> *addresses;
  • Email liên hệ.

    Khai báo

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<MLKBarcodeEmail *> *emails;
  • Tên người dùng.

    Khai báo

    Objective-C

    @property (nonatomic, readonly, nullable) MLKBarcodePersonName *name;
  • Số điện thoại liên hệ.

    Khai báo

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<MLKBarcodePhone *> *phones;
  • URL liên hệ.

    Khai báo

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<NSString *> *urls;
  • Chức danh.

    Khai báo

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *jobTitle;
  • Một tổ chức kinh doanh.

    Khai báo

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *organization;
  • Không dùng được.

    Khai báo

    Objective-C

    - (nonnull instancetype)init;