مرجع چارچوب اسکن بارکد MLKit
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
آدرس بارکد
class BarcodeAddress : NSObject
یک آدرس
آدرس قالببندی شده، در صورت لزوم حاوی چندین خط.
تجزیه فرمت های آدرس کاملاً محدود است. به طور معمول تمام اطلاعات آدرس در اولین خط آدرس ظاهر می شود. برای مدیریت بهتر آدرس ها، توصیه می شود داده های خام را تجزیه کنید. داده های خام در ویژگی rawValue
Barcode
موجود است.
اعلامیه
سویفت
var addressLines: [String]? { get }
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eBarcodeAddress represents a parsed address with properties for formatted lines and address type.\u003c/p\u003e\n"],["\u003cp\u003eAddress parsing is limited, often placing all information on the first line; using raw data from Barcode's \u003ccode\u003erawValue\u003c/code\u003e is recommended for more comprehensive address handling.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eaddressLines\u003c/code\u003e for formatted address lines and \u003ccode\u003etype\u003c/code\u003e for address classification.\u003c/p\u003e\n"]]],["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,["# MLKitBarcodeScanning Framework Reference\n\nBarcodeAddress\n==============\n\n class BarcodeAddress : NSObject\n\nAn address.\n- `\n ``\n ``\n `\n\n ### [addressLines](#/c:objc(cs)MLKBarcodeAddress(py)addressLines)\n\n `\n ` \n Formatted address, containing multiple lines when appropriate.\n\n The parsing of address formats is quite limited. Typically all address information will appear on\n the first address line. To handle addresses better, it is recommended to parse the raw data. The\n raw data is available in [Barcode](../Classes/Barcode.html)'s `rawValue` property. \n\n #### Declaration\n\n Swift \n\n var addressLines: [String]? { get }\n\n- `\n ``\n ``\n `\n\n ### [type](#/c:objc(cs)MLKBarcodeAddress(py)type)\n\n `\n ` \n Address type. \n\n #### Declaration\n\n Swift \n\n var type: ../Type-Definitions.html#/c:MLKBarcode.h@T@MLKBarcodeAddressType { get }\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MLKBarcodeAddress(im)init)\n\n `\n ` \n Unavailable."]]