AI-generated Key Takeaways
-
BarcodeContactInfoprovides a simplified representation of business card data extracted from barcodes, supporting formats likeVCARDandMECARD. -
Developers can access structured contact information, including addresses, emails, name, phone numbers, URLs, job title, and organization.
-
For complete, unprocessed barcode data, use the
rawValueproperty of the associatedBarcodeobject to perform custom parsing. -
This class offers a convenient way to retrieve key contact details without requiring in-depth knowledge of the underlying barcode formats.
BarcodeContactInfo
class BarcodeContactInfo : NSObjectA 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
Swift
var addresses: [BarcodeAddress]? { get } -
Contact emails.
Declaration
Swift
var emails: [BarcodeEmail]? { get } -
A person’s name.
Declaration
Swift
var name: BarcodePersonName? { get } -
Contact phone numbers.
Declaration
Swift
var phones: [BarcodePhone]? { get } -
Contact URLs.
Declaration
Swift
var urls: [String]? { get } -
A job title.
Declaration
Swift
var jobTitle: String? { get } -
A business organization.
Declaration
Swift
var organization: String? { get } -
Unavailable.