首页 > 解决方案 > Zxing is not supoorting this qr code. Its not able to scan the qr code

问题描述

I have implemented the Zxing but it does not scans with this qr code. Can anyone please suggest how to go for it.enter image description here

This is the code for the viewmodel that I have used.-

private async void OnIndicatorScreenUsingScanClicked(object obj) {

        ZXingScannerPage scanPage = new ZXingScannerPage();
       
       
        scanPage.OnScanResult += (result) =>
        {
            Con = result.Text;

            scanPage.IsScanning = true;

            Device.BeginInvokeOnMainThread(async () =>
            {
                await (Application.Current.MainPage as MasterDetailPage).Detail.Navigation.PopAsync();
                await OnIndicatorScreenClicked("");
            });
        };
        await (Application.Current.MainPage as MasterDetailPage).Detail.Navigation.PushAsync(scanPage);
    }
}

标签: xamarin.formsxamarin.androidxamarin.ioszxingzxing.net

解决方案


推荐阅读