public IntentIntegrator setOrientationLocked(boolean locked) {
        addExtra(Intents.Scan.ORIENTATION_LOCKED, locked);
        return this;
    }
By default, the orientation is locked. Set to false to not lock.

@param locked true to lock orientation
zxing-android-embedded/src/com/google/zxing/integration/android/IntentIntegrator.java