JimmyPun610 / BarcodeScanner.Mobile

Barcode Scanner using GoogleVision API for Xamarin Form, Maui
MIT License
343 stars 101 forks source link

AddBarcodeScannerHandler raises compilation error ? #150

Closed ThomasCarltonInPerson closed 1 year ago

ThomasCarltonInPerson commented 2 years ago

Hello community,

I'm trying to use the BarcodeScanner for the first time but when adding the initial code in my CreateMauiApp function I'm getting the following compilation error :

    'IMauiHandlersCollection' doesn't contain a definition for AddBarcodeScannerHandler.

image

I tried adding the following using directive but it didn't solve the issue.

    using BarcodeScanner.Mobile.Maui;

Does anyone know how to solve that please ?

Thanks. Regards,

JimmyPun610 commented 1 year ago

Hi, does the error still exist if you use 6.3.0.25?

using BarcodeScanner.Mobile;
handlers.AddBarcodeScannerHandler();