@Override
        public void barcodeResult(final BarcodeResult result) {
            barcodeView.pause();
            beepManager.playBeepSoundAndVibrate();

            handler.post(() -> returnResult(result));
        }
Manages barcode scanning for a CaptureActivity. This class may be used to have a custom Activity
(e.g. with a customized look and feel, or a different superclass), but not the barcode scanning
process itself.

This is intended for an Activity that is dedicated to capturing a single barcode and returning
it via setResult(). For other use cases, use DefaultBarcodeScannerView or BarcodeView directly.

The following is managed by this class:
- Orientation lock
- InactivityTimer
- BeepManager
- Initializing from an Intent (via IntentIntegrator)
- Setting the result and finishing the Activity when a barcode is scanned
- Displaying camera errors
zxing-android-embedded/src/com/journeyapps/barcodescanner/CaptureManager.java