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