MLKitBarcodeScanning Framework Reference

  • BarcodePersonName provides a structured representation of a person's name, including individual components like first, last, middle, prefix, and suffix.

  • It offers a formattedName property for accessing the properly formatted full name.

  • For Japanese contacts, the pronunciation property can store the kana name for phonebook entries.

  • The initializer for BarcodePersonName is unavailable for direct use.

BarcodePersonName

class BarcodePersonName : NSObject

A person’s name, both formatted as individual name components.

  • Properly formatted name.

    Declaration

    Swift

    var formattedName: String? { get }
  • First name.

    Declaration

    Swift

    var first: String? { get }
  • Last name.

    Declaration

    Swift

    var last: String? { get }
  • Middle name.

    Declaration

    Swift

    var middle: String? { get }
  • Name prefix.

    Declaration

    Swift

    var prefix: String? { get }
  • Designates a text string to be set as the kana name in the phonebook. Used for Japanese contacts.

    Declaration

    Swift

    var pronunciation: String? { get }
  • Name suffix.

    Declaration

    Swift

    var suffix: String? { get }
  • Unavailable.