GooglePlayServicesComponents icon indicating copy to clipboard operation
GooglePlayServicesComponents copied to clipboard

I don't have access to Xamarin.GooglePlayService.MLKit.BarcodeScanning

Open ComptonAlvaro opened this issue 4 years ago • 3 comments

I am trying to do a xamarin.android application to use ML Kit, and I am folloing this steps:

1.- I create my android application in visual studio, using the template for that. 2.- In the nuget manager, I add the Xamarin.GooglePlayService.MLKit.BarcodeScanning

According with google documentation, one step it is configure the scanner, for example with this code:

val options = BarcodeScannerOptions.Builder()
        .setBarcodeFormats(
                Barcode.FORMAT_QR_CODE,
                Barcode.FORMAT_AZTEC)
        .build()

Then problem is that I can't have access to BarcodeScannerOptions.Builder.

I have tried to add the using Xamarin.GooglePlayService.MLKit.BarcodeScanning, but I don't have this namespace available.

So I wondering how I could use the bardcode sacnner of ML Kit.

Thanks.

ComptonAlvaro avatar Feb 28 '21 09:02 ComptonAlvaro

Xamarin.GooglePlayService.MLKit.BarcodeScanning != Xamarin.Google.MLKit.BarcodeScanning

moljac avatar Mar 30 '21 13:03 moljac

@ComptonAlvaro

Did you try using MLKit instead of GPS?

moljac avatar Apr 10 '21 12:04 moljac

THis will be moved to GPS-FB-MLKit repo soon

https://github.com/xamarin/GooglePlayServicesComponents

moljac avatar Apr 10 '21 12:04 moljac