Unable to stop camera after bar code scan successfully

I’m using @ionic-native/barcode-scanner/ngx plugin for scanning barcode. I’m unable to stop the camera after scanning the barcode. So let me know how to stop the camera after the successfull scan. Thanks in advance.

so you can put something to stop your camera when it successfully done.