Riferimento al framework MLKitBarcodeScanning

Definizioni dei tipi

Le seguenti definizioni del tipo sono disponibili a livello globale.

  • @enum BarcodeValueType Formato del valore del codice a barre. Ad esempio, TEXT, PRODUCT, URL ecc.

    Dichiarazione

    Objective-C

    typedef NSInteger MLKBarcodeValueType
  • @enum BarcodeAddressType Tipo di indirizzo.

    Dichiarazione

    Objective-C

    typedef NSInteger MLKBarcodeAddressType
  • @enum BarcodeEmailType Tipo di email per BarcodeEmail.

    Dichiarazione

    Objective-C

    typedef NSInteger MLKBarcodeEmailType
  • @enum BarcodePhoneType Tipo di telefono per BarcodePhone.

    Dichiarazione

    Objective-C

    typedef NSInteger MLKBarcodePhoneType
  • @enum BarcodeWiFiEncryptionType Tipo di crittografia Wi-Fi per BarcodeWiFi.

    Dichiarazione

    Objective-C

    typedef NSInteger MLKBarcodeWiFiEncryptionType
  • Un blocco contenente un array di codici a barre o nil in caso di errore.

    Dichiarazione

    Objective-C

    typedef void (^MLKBarcodeScanningCallback)(NSArray<MLKBarcode *> *_Nullable,
                                               NSError *_Nullable)

    Parametri

    barcodes

    Array di codici a barre scansionati nell'immagine o nil se si è verificato un errore.

    error

    L'errore o nil.