MLKitBarcodeScanning 框架参考

MLKBarcodeAddress


@interface MLKBarcodeAddress : NSObject

地址。

  • 统一格式的地址,在适当的时候包含多行。

    地址格式的解析非常有限。通常,所有地址信息都会显示在 第 1 个地址行。为了更好地处理地址,建议解析原始数据。通过 BarcoderawValue 属性中提供了原始数据。

    声明

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<NSString *> *addressLines;
  • 地址类型。

    声明

    Objective-C

    @property (nonatomic, readonly) MLKBarcodeAddressType type;
  • 不可用。

    声明

    Objective-C

    - (nonnull instancetype)init;