         
         captureSession.startRunning()
     }
+
+    func stopReading(_ command: CDVInvokedUrlCommand){
+        captureSession.stopRunning()
+    }
     
     func failed() {
         print("Scanning unsupported")

            readingCommand = nil
        }
    }
    
    override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        return .portrait
    }
    
}

    
    fileprivate var readingCommand: CDVInvokedUrlCommand?
    
    override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        return .portrait
    }

    override func pluginInitialize() {
        super.pluginInitialize()
    }
