function switchCamFn() {
        if (AR.hardware.camera.position === AR.CONST.CAMERA_POSITION.FRONT) {
            AR.hardware.camera.position = AR.CONST.CAMERA_POSITION.BACK
        } else {
            AR.hardware.camera.position = AR.CONST.CAMERA_POSITION.FRONT
        }
    }
/* Switch between front and back camera. */
Switch between front and back camera.
Switch between front and back camera .
function switchCamFn() {
        if (AR.hardware.camera.position === AR.CONST.CAMERA_POSITION.FRONT) {
            AR.hardware.camera.position = AR.CONST.CAMERA_POSITION.BACK
        } else {
            AR.hardware.camera.position = AR.CONST.CAMERA_POSITION.FRONT
        }
    }
function switchCamFn ( ) { if ( AR . hardware . camera . position === AR . CONST . CAMERA_POSITION . FRONT ) { AR . hardware . camera . position = AR . CONST . CAMERA_POSITION . BACK } else { AR . hardware . camera . position = AR . CONST . CAMERA_POSITION . FRONT } }
Switch between front and back camera.
Switch between front and back camera .