Example #1
0
        public void StopPreviewing()
        {
            if (!IsPreviewing)
            {
                return;
            }

            CaptureSession.StopRunning();
            IsPreviewing        = false;
            previewLayer.Hidden = true;
        }
Example #2
0
        public void StopRunning()
        {
            sessionQueue.DispatchSync(delegate {
                running = false;

                CaptureSession.StopRunning();

                captureSessionStoppedRunning();

                teardownCaptureSession();
            });
        }
 public void Release()
 {
     CaptureSession.StopRunning();
     Recorder.Dispose();
     Queue.Dispose();
     CaptureSession.RemoveOutput(Output);
     CaptureSession.RemoveInput(Input);
     Output.Dispose();
     Input.Dispose();
     MainDevice.Dispose();
     this.RemoveGestureRecognizer(Pinch);
 }
 public override void RemoveFromSuperview()
 {
     base.RemoveFromSuperview();
     //Off the torch when exit page
     if (GoogleVisionBarCodeScanner.Methods.IsTorchOn())
     {
         GoogleVisionBarCodeScanner.Methods.ToggleFlashlight();
     }
     //Stop the capture session if not null
     try {
         if (CaptureSession != null)
         {
             CaptureSession.StopRunning();
         }
     } catch
     {
     }
 }
Example #5
0
 void StopCameraPreview()
 {
     CaptureSession.StopRunning();
 }