Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

How to use BarcodeScanning with Xamarion.Google.MlKit.Vision.BarcodeScanning #450

Open
@ComptonAlvaro

Description

I am trying to develop an Xamarion.Android application using Google MLLit to can scan QR codes. I am trying to follow the documentation of Google here: https://developers.google.com/ml-kit/vision/barcode-scanning/android

I create a blank project of Xamarin.Android and in the main activity, I tried to use this code:

            var options = BarcodeScannerOptions.Builder
                .setBarcodeFormats(Barcode.FormatQrCode)
                .build();

Then problem is that BarcodeScannerOptions.Builder has not a .setBarcodeFormats method, so I don't know how to continue.

I could try to find an example here in the examples code, but I don't see any example with MLKit, it is with GSM, and when I try to open this project, it says that it can't be found the GSM namespace.

Where coudl I use MLKit or where I could find an example with the code for Xamarin.Android and MLKit?

Thanks.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions