ข้อมูลอ้างอิงเฟรมเวิร์ก MLKitBarcodeScanning
BarcodeAddress
class BarcodeAddress : NSObject
ที่อยู่
-
ที่อยู่ที่มีการจัดรูปแบบและมีหลายบรรทัดตามความเหมาะสม
การแยกวิเคราะห์รูปแบบที่อยู่ค่อนข้างจํากัด โดยปกติแล้ว ข้อมูลที่อยู่ทั้งหมดจะปรากฏในบรรทัดที่อยู่แรก เราขอแนะนำให้แยกวิเคราะห์ข้อมูลดิบเพื่อจัดการที่อยู่ได้ดียิ่งขึ้น ข้อมูลดิบมีอยู่ในพร็อพเพอร์ตี้ rawValue
ของ Barcode
คำประกาศ
Swift
var addressLines: [String]? { get }
-
-
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-01 UTC
[null,null,["อัปเดตล่าสุด 2024-12-01 UTC"],[[["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"]]