MLKitBarcodeScanning 架構參考資料
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
MLKBarcodeAddress
@interface MLKBarcodeAddress : NSObject
地址。
-
格式化地址,視情況包含多行地址。
剖析地址格式的能力相當有限。一般而言,所有地址資訊都會顯示在
第一行地址為了更妥善處理地址,建議您剖析原始資料。
原始資料位於 Barcode
的 rawValue
資源中。
聲明
Objective-C
@property (nonatomic, readonly, nullable) NSArray<NSString *> *addressLines;
-
-
聲明
Objective-C
- (nonnull instancetype)init;
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-20 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-09-20 (世界標準時間)。"],[[["MLKBarcodeAddress represents a parsed address from a barcode."],["It includes properties for formatted address lines and address type."],["Raw barcode data offers more detailed address information for advanced parsing."],["Address parsing capabilities may be limited, relying mostly on the first address line."],["Direct initialization of MLKBarcodeAddress is not allowed."]]],["`MLKBarcodeAddress` is an Objective-C class representing an address. It provides the address in a formatted `addressLines` array of strings, though parsing limitations mean most data is often in the first line. For better address handling, raw data is accessible via `Barcode`'s `rawValue`. It also includes an `type` property indicating the address type. The `init` method is not available for use.\n"]]