MLKitBarcodeScanning 框架参考
BarcodeAddress
class BarcodeAddress : NSObject
地址。
-
设置了格式的地址,根据需要包含多行。
对地址格式的解析非常有限。通常,所有地址信息都会显示在第一行地址中。为了更好地处理地址,建议解析原始数据。原始数据可在 Barcode
的 rawValue
属性中找到。
声明
Swift
var addressLines: [String]? { get }
-
-
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-01。
[null,null,["最后更新时间 (UTC):2024-12-01。"],[[["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"]]