title: How to pause ZXing reading untill the user close the alert message in Xamarin Forms?
body: <p>I am implementing ZXing barcode reader , so when the user scan the wrong bar code , an alert messsage pops up ehich says that was the wrong barcode. The problem is that , the scaner keeps scanning behind the alert message and keeps poping up the same alert. I want the scanner to pause untill the user close the alert message. thats my code , and by the way , zxing.IsAnalyzing = false; is not working</p>
  
  <pre><code> zxing = new ZXingScannerView
              {
                  HorizontalOptions = LayoutOptions.FillAndExpand,
                  VerticalOptions = LayoutOptions.FillAndExpand,
                  AutomationId = "zxingScannerView",
              };
  
  
              zxing.OnScanResult += (result) =&gt;
              {
  
                  Device.BeginInvokeOnMainThread(async () =&gt;
                  {
                      if (!result.Text.Equals(auftrag.code))
                          {
                          zxing.IsAnalyzing = false;
                              await DisplayAlert("Barcode nicht gefunden.", "Der Barcode gehört nicht zu dem gewählten Auftrag.", "OK");
  
                          }
                          else
  
                          await Navigation.PushAsync(new AuftragDescription(auftrag));
                          }
                  });
              };
  </code></pre>