public boolean isPreviewActive() {
        return previewActive;
    }
The preview typically starts being active a while after calling resume(), and stops
when calling pause().

@return true if the preview is active
zxing-android-embedded/src/com/journeyapps/barcodescanner/CameraPreview.java