MLKitBarcodeScanning Framework Reference

  • BarcodeAddress represents a parsed address with properties for formatted lines and address type.

  • Address parsing is limited, often placing all information on the first line; using raw data from Barcode's rawValue is recommended for more comprehensive address handling.

  • It includes properties like addressLines for formatted address lines and type for address classification.

BarcodeAddress

class BarcodeAddress : NSObject

An address.

  • Formatted address, containing multiple lines when appropriate.

    The parsing of address formats is quite limited. Typically all address information will appear on the first address line. To handle addresses better, it is recommended to parse the raw data. The raw data is available in Barcode‘s rawValue property.

    Declaration

    Swift

    var addressLines: [String]? { get }
  • Address type.

    Declaration

    Swift

    var type: BarcodeAddressType { get }
  • Unavailable.