void CheckPermissions() { Android.Util.Log.Debug("ZXing.Net.Mobile", "Checking Camera Permissions..."); if (!PlatformChecks.HasCameraPermission(this.Context)) { var msg = "ZXing.Net.Mobile requires permission to use the Camera (" + PlatformChecks.PERMISSION_CAMERA + "), but was not found in your AndroidManifest.xml file."; Android.Util.Log.Error("ZXing.Net.Mobile", msg); throw new UnauthorizedAccessException(msg); } }
void CheckPermissions() { var perf = PerformanceCounter.Start(); Android.Util.Log.Debug(MobileBarcodeScanner.TAG, "Checking Camera Permissions..."); if (!PlatformChecks.HasCameraPermission(this.Context)) { var msg = "ZXing.Net.Mobile requires permission to use the Camera (" + Android.Manifest.Permission.Camera + "), but was not found in your AndroidManifest.xml file."; Android.Util.Log.Error("ZXing.Net.Mobile", msg); throw new UnauthorizedAccessException(msg); } PerformanceCounter.Stop(perf, "CheckPermissions took {0}ms"); }