タイプの定義
次の型定義はグローバルで使用できます。
-
@enum BarcodeValueType。バーコードの値の形式。たとえば、TEXT、PRODUCT、URL などです。
宣言
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
。