public CameraAnalyzer(SurfaceView surfaceView, IScannerSessionHost scannerHost)
 {
     _scannerHost         = scannerHost;
     _cameraEventListener = new CameraEventsListener();
     _cameraController    = new CameraController(surfaceView, _cameraEventListener, scannerHost);
     Torch = new Torch(_cameraController, surfaceView.Context);
 }
Beispiel #2
0
 public CameraController(SurfaceView surfaceView, CameraEventsListener cameraEventListener, IScannerSessionHost scannerHost)
 {
     _context             = surfaceView.Context;
     _holder              = surfaceView.Holder;
     _surfaceView         = surfaceView;
     _cameraEventListener = cameraEventListener;
     _scannerHost         = scannerHost;
 }