MLKitBarcodeScanning 架構參考資料
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
BarcodeAddress
class BarcodeAddress : NSObject
地址。
-
格式化地址,視情況包含多行地址。
剖析地址格式的能力相當有限。一般而言,所有地址資訊都會顯示在
第一行地址為了更妥善處理地址,建議您剖析原始資料。
原始資料位於 Barcode 的 rawValue 資源中。
聲明
Swift
var addressLines: [String]? { get }
-
-
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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"]]