attach
Same as BarcodeAutoSnappingController.attach, but creates new BarcodeScannerFrameHandler which will be attached to camera.
Use this method if you don't need to control barcodes scanning routine. However, be careful to not accidentally attach several BarcodeScannerFrameHandler to camera therefore causing document scanning to be executed more than once.
Convenience method for attaching BarcodeAutoSnappingController to camera view and BarcodeScannerFrameHandler.
Auto-snapping is enabled by default as soon as you create new instance of BarcodeAutoSnappingController. You can manually enable or disable auto-snapping by calling BarcodeAutoSnappingController.isEnabled.
Return
Parameters
camera view which is used for snapping
BarcodeScannerFrameHandler which will be attached to camera.