我在Xamarin.Forms项目中使用Xamarin.Forms条形码扫描器插件。根据一些帖子,我需要使用自定义覆盖ZXing扫描仪,以便有取消按钮。但我对Xamarin.Forms项目中的Android开发并不熟悉。到目前为止,我知道扫描仪(MobileBarcodeScanner of ZXing plugin)接受Android.Views.View作为覆盖,以取代默认的扫描页面视图。;
var scanResult = await scanner.Scan</
因此,在我的应用程序开始时,用户必须能够扫描QR代码。在应用程序设置中,用户可以扫描另一个条形码以更改设置中的一些数据。在我的应用程序扫描仪开始时,工作正常,但是当我试图扫描settingsVC中的条形码时,我会收到以下警告:
Warning: Attempt to present ZXing.Mobile.ZXingScannerViewControllervar scanner = new ZXing.Mobile.MobileBarcodeSca