MLKitBarcodeScanning フレームワーク リファレンス

タイプの定義

次の型定義はグローバルで使用できます。

  • @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