MLKitBarcodeScanning Framework Reference

  • MLKBarcodeContactInfo provides a simplified representation of business card data extracted from barcodes, including contact details like name, addresses, emails, and phone numbers.

  • It supports various underlying formats such as VCARD and MECARD, offering access to essential contact information.

  • For complete, unprocessed barcode data, the rawValue property of the associated Barcode object should be used.

  • Developers can access specific contact details through properties like addresses, emails, name, phones, urls, jobTitle, and organization.

MLKBarcodeContactInfo


@interface MLKBarcodeContactInfo : NSObject

A person’s or organization’s business card. This may come from different underlying formats including VCARD and MECARD.

This object represents a simplified view of possible business cards. If you require lossless access to the information in the barcode, you should parse the raw data yourself. To access the raw data, use the Barcode‘s rawValue property.

  • Person’s or organization’s addresses.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<MLKBarcodeAddress *> *addresses;
  • Contact emails.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<MLKBarcodeEmail *> *emails;
  • A person’s name.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MLKBarcodePersonName *name;
  • Contact phone numbers.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<MLKBarcodePhone *> *phones;
  • Contact URLs.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<NSString *> *urls;
  • A job title.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *jobTitle;
  • A business organization.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    - (nonnull instancetype)init;