ZXing: default value did not match return type

Toto.7709Toto.7709 USMember
edited December 2017 in Cross Platform with Xamarin

hy , I get error during Live Run. Error: default value did not match return type.

code:

 ZXingScannerPage scanPage;
        Button buttonScanDefaultOverlay;

 buttonScanDefaultOverlay.Clicked += async delegate
            {

                scanPage = new ZXingScannerPage();
                scanPage.OnScanResult += (result) =>
                {
                    scanPage.IsScanning = false;

                    ZXing.BarcodeFormat barcodeFormat = result.BarcodeFormat;
                    string type = barcodeFormat.ToString();
                    Device.BeginInvokeOnMainThread(() =>
                    {
                        Navigation.PopAsync();
                        DisplayAlert("The Barcode type is : " + type, "The text is : " + result.Text, "OK");

                    });
                };
                await Navigation.PushAsync(scanPage);

            };

            var stack = new StackLayout ();
            stack.Children.Add(buttonScanDefaultOverlay);
            Content = stack;

permissions set: CAMERA, FLASHLIGHT, INTERNET

testing with older android if it makes big deal..
any help?

Sign In or Register to comment.