This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* <p>Returns the supplied {@link com.google.android.gms.vision.CameraSource}'s {@link android.hardware.Camera} instance that is being used.</p> | |
* <p> | |
* If you want to set any of the camera parameters, here's an example that sets the focus mode to continuous auto focus and enables the flashlight: | |
* <blockquote> | |
* <code> | |
* Camera.Parameters params = camera.getParameters(); | |
* params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE); | |
* params.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH); | |
* camera.setParameters(params); |