類型定義
以下類型定義適用於全球
-
@enum BarcodeValueType 條碼的值格式。例如:TEXT、PRODUCT、URL 等。
聲明
Objective-C
typedef NSInteger MLKBarcodeValueType
-
@enum BarcodeAddressType 地址類型。
聲明
Objective-C
typedef NSInteger MLKBarcodeAddressType
-
@enum BarcodeEmailType BarcodeEmail 的電子郵件類型。
聲明
Objective-C
typedef NSInteger MLKBarcodeEmailType
-
@enum BarcodePhoneType BarcodePhone 電話類型。
聲明
Objective-C
typedef NSInteger MLKBarcodePhoneType
-
@enum BarcodeWiFiEncryptionType BarcodeWiFi 的 Wi-Fi 加密類型。
聲明
Objective-C
typedef NSInteger MLKBarcodeWiFiEncryptionType
-
如果發生錯誤,則包含條碼陣列或
nil
的區塊。聲明
Objective-C
typedef void (^MLKBarcodeScanningCallback)(NSArray<MLKBarcode *> *_Nullable, NSError *_Nullable)
參數
barcodes
如果發生錯誤,系統在圖片中掃描的條碼陣列或
nil
。error
錯誤或
nil
。