public CameraAnalyzer(SurfaceView surfaceView, IScannerSessionHost scannerHost) { _scannerHost = scannerHost; _cameraEventListener = new CameraEventsListener(); _cameraController = new CameraController(surfaceView, _cameraEventListener, scannerHost); Torch = new Torch(_cameraController, surfaceView.Context); }
public CameraAnalyzer(SurfaceView surfaceView, MobileBarcodeScanningOptions scanningOptions) { _scanningOptions = scanningOptions; _cameraEventListener = new CameraEventsListener(); _cameraController = new CameraController(surfaceView, _cameraEventListener, scanningOptions); Torch = new Torch(_cameraController, surfaceView.Context); }
public CameraController(SurfaceView surfaceView, CameraEventsListener cameraEventListener, IScannerSessionHost scannerHost) { _context = surfaceView.Context; _holder = surfaceView.Holder; _surfaceView = surfaceView; _cameraEventListener = cameraEventListener; _scannerHost = scannerHost; }
public CameraController(SurfaceView surfaceView, CameraEventsListener cameraEventListener, MobileBarcodeScanningOptions scanningOptions) { _context = surfaceView.Context; _holder = surfaceView.Holder; _surfaceView = surfaceView; _cameraEventListener = cameraEventListener; _scanningOptions = scanningOptions; }
public CameraAnalyzer(SurfaceView surfaceView, IScannerSessionHost scannerHost) { _scannerHost = scannerHost; _cameraEventListener = new CameraEventsListener(); _cameraController = new CameraController(surfaceView, _cameraEventListener, scannerHost); Torch = new Torch(_cameraController, surfaceView.Context); try { manager = (surfaceView.Context as ZxingActivity)?.WindowManager; } catch (Exception ex) { Log.Debug(MobileBarcodeScanner.TAG, "Error occured while getting window manager : " + ex.ToString()); } }
public CameraAnalyzer(SurfaceView surfaceView, IScannerSessionHost scannerHost) { if (surfaceView is ZXingSurfaceView) { this.surfaceView = surfaceView as ZXingSurfaceView; } this.scannerHost = scannerHost; cameraEventListener = new CameraEventsListener(); cameraController = new CameraController(surfaceView, cameraEventListener, scannerHost); Torch = new Torch(cameraController, surfaceView.Context); lastDecodedCameraDisplayRotationDegree = null; if (this.surfaceView?.CustomScanArea != null) { this.surfaceView.CustomOverlay.LayoutChange += CustomOverlayScanAreaView_LayoutChange; } }