類型定義
下列類型定義適用於全球。
-
@enum BarcodeValueType 條碼的值格式例如 TEXT、PRODUCT 和網址等。
聲明
Swift
struct BarcodeValueType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
@enum BarcodeAddressType 地址類型。
聲明
Swift
struct BarcodeAddressType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
@enum BarcodeEmailType BarcodeEmail 的電子郵件類型。
聲明
Swift
struct BarcodeEmailType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
@enum BarcodePhoneType BarcodePhone 的電話類型。
聲明
Swift
struct BarcodePhoneType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
@enum BarcodeWiFiEncryptionType BarcodeWiFi 的 Wi-Fi 加密類型。
聲明
Swift
struct BarcodeWiFiEncryptionType : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable
-
包含條碼陣列的區塊,或發生錯誤時所在的區塊。
nil
聲明
Swift
typealias BarcodeScanningCallback = ([MLKBarcode]?, Error?) -> Void
參數
barcodes
在圖片中掃描的條碼陣列,如果發生錯誤,則
nil
。error
錯誤或
nil
。