MLKitBarcodeScanning Framework-Referenz
BarcodeAddress
class BarcodeAddress : NSObject
Eine Adresse.
-
Formatierte Adresse, die bei Bedarf mehrere Zeilen enthält.
Das Parsen von Adressformaten ist ziemlich eingeschränkt. Normalerweise werden alle Adressinformationen in der ersten Adresszeile angezeigt. Für eine bessere Verarbeitung von Adressen wird empfohlen, die Rohdaten zu parsen. Die Rohdaten sind in der Property rawValue
von Barcode
verfügbar.
Erklärung
Swift
var addressLines: [String]? { get }
-
-
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-12-01 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-12-01 (UTC)."],[[["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."]]],["The `BarcodeAddress` class represents a parsed address, primarily intended for extracting address information from a barcode. It features `addressLines`, an optional array of strings representing formatted address lines, and `type`, indicating the address type. The address parsing is limited, and the raw address data can be found in the `rawValue` property of the parent `Barcode` class for more complex parsing. Initialization of this class directly is unavailable.\n"]]