MLKitBarcodeScanning 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
BarcodeAddress
class BarcodeAddress : NSObject
地址。
-
统一格式的地址,在适当的时候包含多行。
地址格式的解析非常有限。通常,所有地址信息都会显示在
第 1 个地址行。为了更好地处理地址,建议解析原始数据。通过
Barcode
的 rawValue
属性中提供了原始数据。
声明
Swift
var addressLines: [String]? { get }
-
-
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eBarcodeAddress represents a parsed address with properties for formatted lines and address type.\u003c/p\u003e\n"],["\u003cp\u003eAddress parsing is limited, often placing all information on the first line; using raw data from Barcode's \u003ccode\u003erawValue\u003c/code\u003e is recommended for more comprehensive address handling.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eaddressLines\u003c/code\u003e for formatted address lines and \u003ccode\u003etype\u003c/code\u003e for address classification.\u003c/p\u003e\n"]]],["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"],null,["# MLKitBarcodeScanning Framework Reference\n\nBarcodeAddress\n==============\n\n class BarcodeAddress : NSObject\n\nAn address.\n- `\n ``\n ``\n `\n\n ### [addressLines](#/c:objc(cs)MLKBarcodeAddress(py)addressLines)\n\n `\n ` \n Formatted address, containing multiple lines when appropriate.\n\n The parsing of address formats is quite limited. Typically all address information will appear on\n the first address line. To handle addresses better, it is recommended to parse the raw data. The\n raw data is available in [Barcode](../Classes/Barcode.html)'s `rawValue` property. \n\n #### Declaration\n\n Swift \n\n var addressLines: [String]? { get }\n\n- `\n ``\n ``\n `\n\n ### [type](#/c:objc(cs)MLKBarcodeAddress(py)type)\n\n `\n ` \n Address type. \n\n #### Declaration\n\n Swift \n\n var type: ../Type-Definitions.html#/c:MLKBarcode.h@T@MLKBarcodeAddressType { get }\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKBarcodeAddress(im)init)\n\n `\n ` \n Unavailable."]]