상속: Java.Lang.Object, Camera.IPreviewCallback, Camera.IAutoFocusCallback
예제 #1
0
 public CameraAnalyzer(SurfaceView surfaceView, IScannerSessionHost scannerHost)
 {
     _scannerHost         = scannerHost;
     _cameraEventListener = new CameraEventsListener();
     _cameraController    = new CameraController(surfaceView, _cameraEventListener, scannerHost);
     Torch = new Torch(_cameraController, surfaceView.Context);
 }
예제 #2
0
 public CameraAnalyzer(SurfaceView surfaceView, MobileBarcodeScanningOptions scanningOptions)
 {
     _scanningOptions = scanningOptions;
     _cameraEventListener = new CameraEventsListener();
     _cameraController = new CameraController(surfaceView, _cameraEventListener, scanningOptions);
     Torch = new Torch(_cameraController, surfaceView.Context);
 }
예제 #3
0
 public CameraAnalyzer(SurfaceView surfaceView, MobileBarcodeScanningOptions scanningOptions)
 {
     _scanningOptions     = scanningOptions;
     _cameraEventListener = new CameraEventsListener();
     _cameraController    = new CameraController(surfaceView, _cameraEventListener, scanningOptions);
     Torch = new Torch(_cameraController, surfaceView.Context);
 }
예제 #4
0
 public CameraController(SurfaceView surfaceView, CameraEventsListener cameraEventListener, IScannerSessionHost scannerHost)
 {
     _context             = surfaceView.Context;
     _holder              = surfaceView.Holder;
     _surfaceView         = surfaceView;
     _cameraEventListener = cameraEventListener;
     _scannerHost         = scannerHost;
 }
예제 #5
0
 public CameraController(SurfaceView surfaceView, CameraEventsListener cameraEventListener,
                         MobileBarcodeScanningOptions scanningOptions)
 {
     _context             = surfaceView.Context;
     _holder              = surfaceView.Holder;
     _surfaceView         = surfaceView;
     _cameraEventListener = cameraEventListener;
     _scanningOptions     = scanningOptions;
 }
예제 #6
0
 public CameraController(SurfaceView surfaceView, CameraEventsListener cameraEventListener,
     MobileBarcodeScanningOptions scanningOptions)
 {
     _context = surfaceView.Context;
     _holder = surfaceView.Holder;
     _surfaceView = surfaceView;
     _cameraEventListener = cameraEventListener;
     _scanningOptions = scanningOptions;
 }
예제 #7
0
 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;
            }
        }