public void StopPreviewing() { if (!IsPreviewing) { return; } CaptureSession.StopRunning(); IsPreviewing = false; previewLayer.Hidden = true; }
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 { } }
void StopCameraPreview() { CaptureSession.StopRunning(); }