|
|
@ -191,6 +191,7 @@ class BarcodeScannerPlugin: Plugin, AVCaptureMetadataOutputObjectsDelegate {
|
|
|
|
if self.captureSession != nil {
|
|
|
|
if self.captureSession != nil {
|
|
|
|
self.captureSession!.stopRunning()
|
|
|
|
self.captureSession!.stopRunning()
|
|
|
|
self.cameraView.removePreviewLayer()
|
|
|
|
self.cameraView.removePreviewLayer()
|
|
|
|
|
|
|
|
self.cameraView.removeFromSuperview()
|
|
|
|
self.captureVideoPreviewLayer = nil
|
|
|
|
self.captureVideoPreviewLayer = nil
|
|
|
|
self.metaOutput = nil
|
|
|
|
self.metaOutput = nil
|
|
|
|
self.captureSession = nil
|
|
|
|
self.captureSession = nil
|
|
|
|