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。"],[],["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,[]]