# Camera.Parameters

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Parameters

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/hardware/Camera.Parameters "View this page in Java")  

```
open class Parameters
```

|---|--------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                           ||
| ↳ | [android.hardware.Camera.Parameters](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#) |

*** ** * ** ***

| **This class was deprecated in API level 21.**
|
| We recommend using the new[android.hardware.camera2](https://developer.android.com/reference/kotlin/android/hardware/camera2/package-summary)API for new applications.

Camera service settings.

To make camera parameters take effect, applications have to call[Camera.setParameters(Camera.Parameters)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setParameters(android.hardware.Camera.Parameters)). For example, after[Camera.Parameters.setWhiteBalance](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setWhiteBalance(kotlin.String))is called, white balance is not actually changed until[Camera.setParameters(Camera.Parameters)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setParameters(android.hardware.Camera.Parameters))is called with the changed parameters object.

Different devices may have different camera capabilities, such as picture size or flash modes. The application should query the camera capabilities before setting parameters. For example, the application should call[Camera.Parameters.getSupportedColorEffects()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedColorEffects())before calling[Camera.Parameters.setColorEffect(String)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setColorEffect(kotlin.String)). If the camera does not support color effects,[Camera.Parameters.getSupportedColorEffects()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedColorEffects())will return null.

## Summary

|                                                                                                                                                                                                                                                                                          Constants                                                                                                                                                                                                                                                                                           ||
|----------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ANTIBANDING_50HZ](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#ANTIBANDING_50HZ:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                          |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ANTIBANDING_60HZ](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#ANTIBANDING_60HZ:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                          |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ANTIBANDING_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#ANTIBANDING_AUTO:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                          |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [ANTIBANDING_OFF](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#ANTIBANDING_OFF:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                            |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_AQUA](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_AQUA:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                                    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_BLACKBOARD](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_BLACKBOARD:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_MONO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_MONO:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                                    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_NEGATIVE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_NEGATIVE:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                            |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_NONE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_NONE:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                                    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_POSTERIZE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_POSTERIZE:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                          |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_SEPIA](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_SEPIA:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                                  |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_SOLARIZE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_SOLARIZE:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                            |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [EFFECT_WHITEBOARD](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_WHITEBOARD:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FLASH_MODE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_AUTO:kotlin.String) Flash will be fired automatically when required.                                                                                                                                                                                                                                                                                                                  |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FLASH_MODE_OFF](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_OFF:kotlin.String) Flash will not be fired.                                                                                                                                                                                                                                                                                                                                            |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FLASH_MODE_ON](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_ON:kotlin.String) Flash will always be fired during snapshot.                                                                                                                                                                                                                                                                                                                           |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FLASH_MODE_RED_EYE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_RED_EYE:kotlin.String) Flash will be fired in red-eye reduction mode.                                                                                                                                                                                                                                                                                                              |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FLASH_MODE_TORCH](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_TORCH:kotlin.String) Constant emission of light during preview, auto-focus and snapshot.                                                                                                                                                                                                                                                                                             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [FOCUS_DISTANCE_FAR_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_DISTANCE_FAR_INDEX:kotlin.Int) The array index of far focus distance for use with[getFocusDistances(float[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusDistances(kotlin.FloatArray)).                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [FOCUS_DISTANCE_NEAR_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_DISTANCE_NEAR_INDEX:kotlin.Int) The array index of near focus distance for use with[getFocusDistances(float[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusDistances(kotlin.FloatArray)).                                                                                                                                         |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [FOCUS_DISTANCE_OPTIMAL_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_DISTANCE_OPTIMAL_INDEX:kotlin.Int) The array index of optimal focus distance for use with[getFocusDistances(float[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusDistances(kotlin.FloatArray)).                                                                                                                                |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FOCUS_MODE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_AUTO:kotlin.String) Auto-focus mode.                                                                                                                                                                                                                                                                                                                                                  |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FOCUS_MODE_CONTINUOUS_PICTURE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_CONTINUOUS_PICTURE:kotlin.String) Continuous auto focus mode intended for taking pictures.                                                                                                                                                                                                                                                                              |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FOCUS_MODE_CONTINUOUS_VIDEO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_CONTINUOUS_VIDEO:kotlin.String) Continuous auto focus mode intended for video recording.                                                                                                                                                                                                                                                                                  |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FOCUS_MODE_EDOF](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_EDOF:kotlin.String) Extended depth of field (EDOF).                                                                                                                                                                                                                                                                                                                                   |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FOCUS_MODE_FIXED](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_FIXED:kotlin.String) Focus is fixed.                                                                                                                                                                                                                                                                                                                                                 |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FOCUS_MODE_INFINITY](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_INFINITY:kotlin.String) Focus is set at infinity.                                                                                                                                                                                                                                                                                                                                 |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [FOCUS_MODE_MACRO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_MACRO:kotlin.String) Macro (close-up) focus mode.                                                                                                                                                                                                                                                                                                                                    |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PREVIEW_FPS_MAX_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#PREVIEW_FPS_MAX_INDEX:kotlin.Int) The array index of maximum preview fps for use with[getPreviewFpsRange(int[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewFpsRange(kotlin.IntArray))or[getSupportedPreviewFpsRange()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange()). |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)       | [PREVIEW_FPS_MIN_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#PREVIEW_FPS_MIN_INDEX:kotlin.Int) The array index of minimum preview fps for use with[getPreviewFpsRange(int[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewFpsRange(kotlin.IntArray))or[getSupportedPreviewFpsRange()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange()). |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_ACTION](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_ACTION:kotlin.String) Take photos of fast moving objects.                                                                                                                                                                                                                                                                                                                           |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_AUTO:kotlin.String) Scene mode is off.                                                                                                                                                                                                                                                                                                                                                |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_BARCODE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_BARCODE:kotlin.String) Applications are looking for a barcode.                                                                                                                                                                                                                                                                                                                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_BEACH](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_BEACH:kotlin.String) Take pictures on the beach.                                                                                                                                                                                                                                                                                                                                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_CANDLELIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_CANDLELIGHT:kotlin.String) Capture the naturally warm color of scenes lit by candles.                                                                                                                                                                                                                                                                                          |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_FIREWORKS](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_FIREWORKS:kotlin.String) For shooting firework displays.                                                                                                                                                                                                                                                                                                                         |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_HDR](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_HDR:kotlin.String) Capture a scene using high dynamic range imaging techniques.                                                                                                                                                                                                                                                                                                        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_LANDSCAPE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_LANDSCAPE:kotlin.String) Take pictures on distant objects.                                                                                                                                                                                                                                                                                                                       |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_NIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_NIGHT:kotlin.String) Take photos at night.                                                                                                                                                                                                                                                                                                                                           |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_NIGHT_PORTRAIT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_NIGHT_PORTRAIT:kotlin.String) Take people pictures at night.                                                                                                                                                                                                                                                                                                                |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_PARTY](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_PARTY:kotlin.String) Take indoor low-light shot.                                                                                                                                                                                                                                                                                                                                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_PORTRAIT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_PORTRAIT:kotlin.String) Take people pictures.                                                                                                                                                                                                                                                                                                                                     |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_SNOW](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_SNOW:kotlin.String) Take pictures on the snow.                                                                                                                                                                                                                                                                                                                                        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_SPORTS](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_SPORTS:kotlin.String) Take photos of fast moving objects.                                                                                                                                                                                                                                                                                                                           |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_STEADYPHOTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_STEADYPHOTO:kotlin.String) Avoid blurry pictures (for example, due to hand shake).                                                                                                                                                                                                                                                                                             |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_SUNSET](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_SUNSET:kotlin.String) Take sunset photos.                                                                                                                                                                                                                                                                                                                                           |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [SCENE_MODE_THEATRE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_THEATRE:kotlin.String) Take photos in a theater.                                                                                                                                                                                                                                                                                                                                   |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WHITE_BALANCE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_AUTO:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                      |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WHITE_BALANCE_CLOUDY_DAYLIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_CLOUDY_DAYLIGHT:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WHITE_BALANCE_DAYLIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_DAYLIGHT:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                              |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WHITE_BALANCE_FLUORESCENT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_FLUORESCENT:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                        |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WHITE_BALANCE_INCANDESCENT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_INCANDESCENT:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                      |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WHITE_BALANCE_SHADE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_SHADE:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                                    |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WHITE_BALANCE_TWILIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_TWILIGHT:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                                              |
| static[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [WHITE_BALANCE_WARM_FLUORESCENT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_WARM_FLUORESCENT:kotlin.String) <br />                                                                                                                                                                                                                                                                                                                              |

|                                                                                                                                                                                                                                                                                                    Public methods                                                                                                                                                                                                                                                                                                    ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                                                       | [flatten](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#flatten())`()` Creates a single string with all the parameters set in this Parameters object.                                                                                                                                                                                                               |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                                                       | [get](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#get(kotlin.String))`(`key:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Returns the value of a String parameter.                                                                                                                                                      |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                                                       | [getAntibanding](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getAntibanding())`()` Gets the current antibanding setting.                                                                                                                                                                                                                                          |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [getAutoExposureLock](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getAutoExposureLock())`()` Gets the state of the auto-exposure lock.                                                                                                                                                                                                                            |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [getAutoWhiteBalanceLock](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getAutoWhiteBalanceLock())`()` Gets the state of the auto-white balance lock.                                                                                                                                                                                                               |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                                                       | [getColorEffect](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getColorEffect())`()` Gets the current color effect setting.                                                                                                                                                                                                                                         |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getExposureCompensation())`()` Gets the current exposure compensation index.                                                                                                                                                                                                                |
| open[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)                                                                                                                          | [getExposureCompensationStep](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getExposureCompensationStep())`()` Gets the exposure compensation step.                                                                                                                                                                                                                 |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                                                       | [getFlashMode](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFlashMode())`()` Gets the current flash mode setting.                                                                                                                                                                                                                                               |
| open[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)                                                                                                                          | [getFocalLength](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocalLength())`()` Gets the focal length (in millimeter) of the camera.                                                                                                                                                                                                                           |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Camera.Area](https://developer.android.com/reference/kotlin/android/hardware/Camera.Area)!\>! | [getFocusAreas](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusAreas())`()` Gets the current focus areas.                                                                                                                                                                                                                                                    |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [getFocusDistances](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusDistances(kotlin.FloatArray))`(`output:` `[FloatArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float-array/index.html)!`)` Gets the distances from the camera to where an object appears to be in focus.                                                                     |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                                                       | [getFocusMode](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusMode())`()` Gets the current focus mode setting.                                                                                                                                                                                                                                               |
| open[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)                                                                                                                          | [getHorizontalViewAngle](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getHorizontalViewAngle())`()` Gets the horizontal angle of view in degrees.                                                                                                                                                                                                                  |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getInt](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getInt(kotlin.String))`(`key:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Returns the value of an integer parameter.                                                                                                                                              |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getJpegQuality](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getJpegQuality())`()` Returns the quality setting for the JPEG picture.                                                                                                                                                                                                                              |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getJpegThumbnailQuality](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getJpegThumbnailQuality())`()` Returns the quality setting for the EXIF thumbnail in Jpeg picture.                                                                                                                                                                                          |
| open[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!                                                                                                             | [getJpegThumbnailSize](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getJpegThumbnailSize())`()` Returns the dimensions for EXIF thumbnail in Jpeg picture.                                                                                                                                                                                                         |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getMaxExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxExposureCompensation())`()` Gets the maximum exposure compensation index.                                                                                                                                                                                                          |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getMaxNumDetectedFaces](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxNumDetectedFaces())`()` Gets the maximum number of detected faces supported.                                                                                                                                                                                                           |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getMaxNumFocusAreas](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxNumFocusAreas())`()` Gets the maximum number of focus areas supported.                                                                                                                                                                                                                    |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getMaxNumMeteringAreas](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxNumMeteringAreas())`()` Gets the maximum number of metering areas supported.                                                                                                                                                                                                           |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getMaxZoom](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxZoom())`()` Gets the maximum zoom value allowed for snapshot.                                                                                                                                                                                                                                      |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Camera.Area](https://developer.android.com/reference/kotlin/android/hardware/Camera.Area)!\>! | [getMeteringAreas](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMeteringAreas())`()` Gets the current metering areas.                                                                                                                                                                                                                                           |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getMinExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMinExposureCompensation())`()` Gets the minimum exposure compensation index.                                                                                                                                                                                                          |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getPictureFormat](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPictureFormat())`()` Returns the image format for pictures.                                                                                                                                                                                                                                     |
| open[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!                                                                                                             | [getPictureSize](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPictureSize())`()` Returns the dimension setting for pictures.                                                                                                                                                                                                                                    |
| open[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!                                                                                                             | [getPreferredPreviewSizeForVideo](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreferredPreviewSizeForVideo())`()` Returns the preferred or recommended preview size (width and height) in pixels for video recording.                                                                                                                                          |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getPreviewFormat](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewFormat())`()` Returns the image format for preview frames got from[PreviewCallback](https://developer.android.com/reference/kotlin/android/hardware/Camera.PreviewCallback).                                                                                                             |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [getPreviewFpsRange](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewFpsRange(kotlin.IntArray))`(`range:` `[IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)!`)` Returns the current minimum and maximum preview fps.                                                                                                   |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getPreviewFrameRate](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewFrameRate())`()` Returns the setting for the rate at which preview frames are received.                                                                                                                                                                                               |
| open[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!                                                                                                             | [getPreviewSize](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewSize())`()` Returns the dimensions setting for preview pictures.                                                                                                                                                                                                                           |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                                                       | [getSceneMode](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSceneMode())`()` Gets the current scene mode setting.                                                                                                                                                                                                                                               |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!           | [getSupportedAntibanding](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedAntibanding())`()` Gets the supported antibanding values.                                                                                                                                                                                                                       |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!           | [getSupportedColorEffects](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedColorEffects())`()` Gets the supported color effects.                                                                                                                                                                                                                          |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!           | [getSupportedFlashModes](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedFlashModes())`()` Gets the supported flash modes.                                                                                                                                                                                                                                |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!           | [getSupportedFocusModes](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedFocusModes())`()` Gets the supported focus modes.                                                                                                                                                                                                                                |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!\>! | [getSupportedJpegThumbnailSizes](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedJpegThumbnailSizes())`()` Gets the supported jpeg thumbnail sizes.                                                                                                                                                                                                       |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)!\>!                 | [getSupportedPictureFormats](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPictureFormats())`()` Gets the supported picture formats.                                                                                                                                                                                                                    |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!\>! | [getSupportedPictureSizes](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPictureSizes())`()` Gets the supported picture sizes.                                                                                                                                                                                                                          |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)!\>!                 | [getSupportedPreviewFormats](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFormats())`()` Gets the supported preview formats.                                                                                                                                                                                                                    |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)!\>!      | [getSupportedPreviewFpsRange](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange())`()` Gets the supported preview fps (frame-per-second) ranges.                                                                                                                                                                                            |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)!\>!                 | [getSupportedPreviewFrameRates](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFrameRates())`()` Gets the supported preview frame rates.                                                                                                                                                                                                          |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!\>! | [getSupportedPreviewSizes](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewSizes())`()` Gets the supported preview sizes.                                                                                                                                                                                                                          |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!           | [getSupportedSceneModes](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedSceneModes())`()` Gets the supported scene modes.                                                                                                                                                                                                                                |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!\>! | [getSupportedVideoSizes](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedVideoSizes())`()` Gets the supported video frame sizes that can be used by MediaRecorder.                                                                                                                                                                                        |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!           | [getSupportedWhiteBalance](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedWhiteBalance())`()` Gets the supported white balance.                                                                                                                                                                                                                          |
| open[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)                                                                                                                          | [getVerticalViewAngle](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getVerticalViewAngle())`()` Gets the vertical angle of view in degrees.                                                                                                                                                                                                                        |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [getVideoStabilization](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getVideoStabilization())`()` Get the current state of video stabilization.                                                                                                                                                                                                                    |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!                                                                                                                       | [getWhiteBalance](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getWhiteBalance())`()` Gets the current white balance setting.                                                                                                                                                                                                                                      |
| open[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)                                                                                                                              | [getZoom](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getZoom())`()` Gets current zoom value.                                                                                                                                                                                                                                                                     |
| open[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)!\>!                 | [getZoomRatios](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getZoomRatios())`()` Gets the zoom ratios of all zoom values.                                                                                                                                                                                                                                         |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [isAutoExposureLockSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isAutoExposureLockSupported())`()` Returns true if auto-exposure locking is supported.                                                                                                                                                                                                  |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [isAutoWhiteBalanceLockSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isAutoWhiteBalanceLockSupported())`()` Returns true if auto-white balance locking is supported.                                                                                                                                                                                     |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [isSmoothZoomSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isSmoothZoomSupported())`()` Returns true if smooth zoom is supported.                                                                                                                                                                                                                        |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [isVideoSnapshotSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isVideoSnapshotSupported())`()` Returns true if video snapshot is supported.                                                                                                                                                                                                               |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [isVideoStabilizationSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isVideoStabilizationSupported())`()` Returns true if video stabilization is supported.                                                                                                                                                                                                |
| open[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                                      | [isZoomSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isZoomSupported())`()` Returns true if zoom is supported.                                                                                                                                                                                                                                           |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [remove](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#remove(kotlin.String))`(`key:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br />                                                                                                                                                                                  |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [removeGpsData](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#removeGpsData())`()` Removes GPS latitude, longitude, altitude, and timestamp from the parameters.                                                                                                                                                                                                    |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [set](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#set(kotlin.String,%20kotlin.Int))`(`key:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets an integer parameter.                                                               |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [set](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#set(kotlin.String,%20kotlin.String))`(`key:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets a String parameter.                                                       |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setAntibanding](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAntibanding(kotlin.String))`(`antibanding:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets the antibanding.                                                                                                                                           |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setAutoExposureLock](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoExposureLock(kotlin.Boolean))`(`toggle:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets the auto-exposure lock state.                                                                                                                       |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setAutoWhiteBalanceLock](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoWhiteBalanceLock(kotlin.Boolean))`(`toggle:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets the auto-white balance lock state.                                                                                                          |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setColorEffect](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setColorEffect(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets the current color effect setting.                                                                                                                                |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setExposureCompensation(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the exposure compensation index.                                                                                                                         |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setFlashMode](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setFlashMode(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets the flash mode.                                                                                                                                                      |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setFocusAreas](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setFocusAreas(kotlin.collections.MutableList))`(`focusAreas:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Camera.Area](https://developer.android.com/reference/kotlin/android/hardware/Camera.Area)!>!`)` Sets focus areas.             |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setFocusMode](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setFocusMode(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets the focus mode.                                                                                                                                                      |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setGpsAltitude](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setGpsAltitude(kotlin.Double))`(`altitude:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` Sets GPS altitude.                                                                                                                                                  |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setGpsLatitude](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setGpsLatitude(kotlin.Double))`(`latitude:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` Sets GPS latitude coordinate.                                                                                                                                       |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setGpsLongitude](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setGpsLongitude(kotlin.Double))`(`longitude:` `[Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html)`)` Sets GPS longitude coordinate.                                                                                                                                   |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setGpsProcessingMethod](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setGpsProcessingMethod(kotlin.String))`(`processing_method:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets GPS processing method.                                                                                                               |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setGpsTimestamp](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setGpsTimestamp(kotlin.Long))`(`timestamp:` `[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`)` Sets GPS timestamp.                                                                                                                                                    |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setJpegQuality](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setJpegQuality(kotlin.Int))`(`quality:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets Jpeg quality of captured picture.                                                                                                                                        |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setJpegThumbnailQuality](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setJpegThumbnailQuality(kotlin.Int))`(`quality:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the quality of the EXIF thumbnail in Jpeg picture.                                                                                                     |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setJpegThumbnailSize](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setJpegThumbnailSize(kotlin.Int,%20kotlin.Int))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `height:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the dimensions for EXIF thumbnail in Jpeg picture.       |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setMeteringAreas](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setMeteringAreas(kotlin.collections.MutableList))`(`meteringAreas:` `[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Camera.Area](https://developer.android.com/reference/kotlin/android/hardware/Camera.Area)!>!`)` Sets metering areas. |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setPictureFormat](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPictureFormat(kotlin.Int))`(`pixel_format:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the image format for pictures.                                                                                                                                  |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setPictureSize](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPictureSize(kotlin.Int,%20kotlin.Int))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `height:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the dimensions for pictures.                                         |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setPreviewFormat](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewFormat(kotlin.Int))`(`pixel_format:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the image format for preview pictures.                                                                                                                          |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setPreviewFpsRange](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewFpsRange(kotlin.Int,%20kotlin.Int))`(`min:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `max:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the minimum and maximum preview fps.                              |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setPreviewFrameRate](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewFrameRate(kotlin.Int))`(`fps:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the rate at which preview frames are received.                                                                                                                     |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setPreviewSize](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewSize(kotlin.Int,%20kotlin.Int))`(`width:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `height:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the dimensions for preview pictures.                                 |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setRecordingHint](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setRecordingHint(kotlin.Boolean))`(`hint:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Sets recording mode hint.                                                                                                                                        |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setRotation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setRotation(kotlin.Int))`(`rotation:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets the clockwise rotation angle in degrees relative to the orientation of the camera.                                                                                            |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setSceneMode](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setSceneMode(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets the scene mode.                                                                                                                                                      |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setVideoStabilization](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setVideoStabilization(kotlin.Boolean))`(`toggle:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` Enables and disables video stabilization.                                                                                                            |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setWhiteBalance](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setWhiteBalance(kotlin.String))`(`value:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Sets the white balance.                                                                                                                                             |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [setZoom](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setZoom(kotlin.Int))`(`value:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Sets current zoom value.                                                                                                                                                                      |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                                                                                            | [unflatten](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#unflatten(kotlin.String))`(`flattened:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Takes a flattened string of parameters and adds each one to this Parameters object.                                                                                         |

## Constants

### ANTIBANDING_50HZ

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ANTIBANDING_50HZ: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "50hz"

### ANTIBANDING_60HZ

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ANTIBANDING_60HZ: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "60hz"

### ANTIBANDING_AUTO

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ANTIBANDING_AUTO: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "auto"

### ANTIBANDING_OFF

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ANTIBANDING_OFF: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "off"

### EFFECT_AQUA

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_AQUA: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "aqua"

### EFFECT_BLACKBOARD

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_BLACKBOARD: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "blackboard"

### EFFECT_MONO

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_MONO: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "mono"

### EFFECT_NEGATIVE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_NEGATIVE: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "negative"

### EFFECT_NONE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_NONE: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "none"

### EFFECT_POSTERIZE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_POSTERIZE: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "posterize"

### EFFECT_SEPIA

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_SEPIA: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "sepia"

### EFFECT_SOLARIZE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_SOLARIZE: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "solarize"

### EFFECT_WHITEBOARD

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val EFFECT_WHITEBOARD: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "whiteboard"

### FLASH_MODE_AUTO

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FLASH_MODE_AUTO: String
```

**Deprecated:** *Deprecated in Java.*

Flash will be fired automatically when required. The flash may be fired during preview, auto-focus, or snapshot depending on the driver.  

    Value: "auto"

### FLASH_MODE_OFF

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FLASH_MODE_OFF: String
```

**Deprecated:** *Deprecated in Java.*

Flash will not be fired.  

    Value: "off"

### FLASH_MODE_ON

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FLASH_MODE_ON: String
```

**Deprecated:** *Deprecated in Java.*

Flash will always be fired during snapshot. The flash may also be fired during preview or auto-focus depending on the driver.  

    Value: "on"

### FLASH_MODE_RED_EYE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FLASH_MODE_RED_EYE: String
```

**Deprecated:** *Deprecated in Java.*

Flash will be fired in red-eye reduction mode.  

    Value: "red-eye"

### FLASH_MODE_TORCH

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FLASH_MODE_TORCH: String
```

**Deprecated:** *Deprecated in Java.*

Constant emission of light during preview, auto-focus and snapshot. This can also be used for video recording.  

    Value: "torch"

### FOCUS_DISTANCE_FAR_INDEX

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_DISTANCE_FAR_INDEX: Int
```

**Deprecated:** *Deprecated in Java.*

The array index of far focus distance for use with[getFocusDistances(float[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusDistances(kotlin.FloatArray)).  

    Value: 2

### FOCUS_DISTANCE_NEAR_INDEX

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_DISTANCE_NEAR_INDEX: Int
```

**Deprecated:** *Deprecated in Java.*

The array index of near focus distance for use with[getFocusDistances(float[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusDistances(kotlin.FloatArray)).  

    Value: 0

### FOCUS_DISTANCE_OPTIMAL_INDEX

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_DISTANCE_OPTIMAL_INDEX: Int
```

**Deprecated:** *Deprecated in Java.*

The array index of optimal focus distance for use with[getFocusDistances(float[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusDistances(kotlin.FloatArray)).  

    Value: 1

### FOCUS_MODE_AUTO

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_MODE_AUTO: String
```

**Deprecated:** *Deprecated in Java.*

Auto-focus mode. Applications should call[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback))to start the focus in this mode.  

    Value: "auto"

### FOCUS_MODE_CONTINUOUS_PICTURE

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_MODE_CONTINUOUS_PICTURE: String
```

**Deprecated:** *Deprecated in Java.*

Continuous auto focus mode intended for taking pictures. The camera continuously tries to focus. The speed of focus change is more aggressive than[FOCUS_MODE_CONTINUOUS_VIDEO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_CONTINUOUS_VIDEO:kotlin.String). Auto focus starts when the parameter is set.

Applications can call[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback))in this mode. If the autofocus is in the middle of scanning, the focus callback will return when it completes. If the autofocus is not scanning, the focus callback will immediately return with a boolean that indicates whether the focus is sharp or not. The apps can then decide if they want to take a picture immediately or to change the focus mode to auto, and run a full autofocus cycle. The focus position is locked after autoFocus call. If applications want to resume the continuous focus, cancelAutoFocus must be called. Restarting the preview will not resume the continuous autofocus. To stop continuous focus, applications should change the focus mode to other modes.  

    Value: "continuous-picture"

**See Also**

- [#FOCUS_MODE_CONTINUOUS_VIDEO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_CONTINUOUS_VIDEO:kotlin.String)  

### FOCUS_MODE_CONTINUOUS_VIDEO

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_MODE_CONTINUOUS_VIDEO: String
```

**Deprecated:** *Deprecated in Java.*

Continuous auto focus mode intended for video recording. The camera continuously tries to focus. This is the best choice for video recording because the focus changes smoothly . Applications still can call[takePicture(android.hardware.Camera.ShutterCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#takePicture(android.hardware.Camera.ShutterCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback))in this mode but the subject may not be in focus. Auto focus starts when the parameter is set.

Since API level 14, applications can call[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback))in this mode. The focus callback will immediately return with a boolean that indicates whether the focus is sharp or not. The focus position is locked after autoFocus call. If applications want to resume the continuous focus, cancelAutoFocus must be called. Restarting the preview will not resume the continuous autofocus. To stop continuous focus, applications should change the focus mode to other modes.  

    Value: "continuous-video"

**See Also**

- [#FOCUS_MODE_CONTINUOUS_PICTURE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_CONTINUOUS_PICTURE:kotlin.String)  

### FOCUS_MODE_EDOF

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_MODE_EDOF: String
```

**Deprecated:** *Deprecated in Java.*

Extended depth of field (EDOF). Focusing is done digitally and continuously. Applications should not call[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback))in this mode.  

    Value: "edof"

### FOCUS_MODE_FIXED

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_MODE_FIXED: String
```

**Deprecated:** *Deprecated in Java.*

Focus is fixed. The camera is always in this mode if the focus is not adjustable. If the camera has auto-focus, this mode can fix the focus, which is usually at hyperfocal distance. Applications should not call[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback))in this mode.  

    Value: "fixed"

### FOCUS_MODE_INFINITY

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_MODE_INFINITY: String
```

**Deprecated:** *Deprecated in Java.*

Focus is set at infinity. Applications should not call[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback))in this mode.  

    Value: "infinity"

### FOCUS_MODE_MACRO

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FOCUS_MODE_MACRO: String
```

**Deprecated:** *Deprecated in Java.*

Macro (close-up) focus mode. Applications should call[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback))to start the focus in this mode.  

    Value: "macro"

### PREVIEW_FPS_MAX_INDEX

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val PREVIEW_FPS_MAX_INDEX: Int
```

**Deprecated:** *Deprecated in Java.*

The array index of maximum preview fps for use with[getPreviewFpsRange(int[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewFpsRange(kotlin.IntArray))or[getSupportedPreviewFpsRange()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange()).  

    Value: 1

### PREVIEW_FPS_MIN_INDEX

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val PREVIEW_FPS_MIN_INDEX: Int
```

**Deprecated:** *Deprecated in Java.*

The array index of minimum preview fps for use with[getPreviewFpsRange(int[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewFpsRange(kotlin.IntArray))or[getSupportedPreviewFpsRange()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange()).  

    Value: 0

### SCENE_MODE_ACTION

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_ACTION: String
```

**Deprecated:** *Deprecated in Java.*

Take photos of fast moving objects. Same as[SCENE_MODE_SPORTS](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_SPORTS:kotlin.String).  

    Value: "action"

### SCENE_MODE_AUTO

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_AUTO: String
```

**Deprecated:** *Deprecated in Java.*

Scene mode is off.  

    Value: "auto"

### SCENE_MODE_BARCODE

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_BARCODE: String
```

**Deprecated:** *Deprecated in Java.*

Applications are looking for a barcode. Camera driver will be optimized for barcode reading.  

    Value: "barcode"

### SCENE_MODE_BEACH

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_BEACH: String
```

**Deprecated:** *Deprecated in Java.*

Take pictures on the beach.  

    Value: "beach"

### SCENE_MODE_CANDLELIGHT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_CANDLELIGHT: String
```

**Deprecated:** *Deprecated in Java.*

Capture the naturally warm color of scenes lit by candles.  

    Value: "candlelight"

### SCENE_MODE_FIREWORKS

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_FIREWORKS: String
```

**Deprecated:** *Deprecated in Java.*

For shooting firework displays.  

    Value: "fireworks"

### SCENE_MODE_HDR

Added in[API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_HDR: String
```

**Deprecated:** *Deprecated in Java.*

Capture a scene using high dynamic range imaging techniques. The camera will return an image that has an extended dynamic range compared to a regular capture. Capturing such an image may take longer than a regular capture.  

    Value: "hdr"

### SCENE_MODE_LANDSCAPE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_LANDSCAPE: String
```

**Deprecated:** *Deprecated in Java.*

Take pictures on distant objects.  

    Value: "landscape"

### SCENE_MODE_NIGHT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_NIGHT: String
```

**Deprecated:** *Deprecated in Java.*

Take photos at night.  

    Value: "night"

### SCENE_MODE_NIGHT_PORTRAIT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_NIGHT_PORTRAIT: String
```

**Deprecated:** *Deprecated in Java.*

Take people pictures at night.  

    Value: "night-portrait"

### SCENE_MODE_PARTY

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_PARTY: String
```

**Deprecated:** *Deprecated in Java.*

Take indoor low-light shot.  

    Value: "party"

### SCENE_MODE_PORTRAIT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_PORTRAIT: String
```

**Deprecated:** *Deprecated in Java.*

Take people pictures.  

    Value: "portrait"

### SCENE_MODE_SNOW

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_SNOW: String
```

**Deprecated:** *Deprecated in Java.*

Take pictures on the snow.  

    Value: "snow"

### SCENE_MODE_SPORTS

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_SPORTS: String
```

**Deprecated:** *Deprecated in Java.*

Take photos of fast moving objects. Same as[SCENE_MODE_ACTION](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_ACTION:kotlin.String).  

    Value: "sports"

### SCENE_MODE_STEADYPHOTO

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_STEADYPHOTO: String
```

**Deprecated:** *Deprecated in Java.*

Avoid blurry pictures (for example, due to hand shake).  

    Value: "steadyphoto"

### SCENE_MODE_SUNSET

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_SUNSET: String
```

**Deprecated:** *Deprecated in Java.*

Take sunset photos.  

    Value: "sunset"

### SCENE_MODE_THEATRE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val SCENE_MODE_THEATRE: String
```

**Deprecated:** *Deprecated in Java.*

Take photos in a theater. Flash light is off.  

    Value: "theatre"

### WHITE_BALANCE_AUTO

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WHITE_BALANCE_AUTO: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "auto"

### WHITE_BALANCE_CLOUDY_DAYLIGHT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WHITE_BALANCE_CLOUDY_DAYLIGHT: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "cloudy-daylight"

### WHITE_BALANCE_DAYLIGHT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WHITE_BALANCE_DAYLIGHT: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "daylight"

### WHITE_BALANCE_FLUORESCENT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WHITE_BALANCE_FLUORESCENT: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "fluorescent"

### WHITE_BALANCE_INCANDESCENT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WHITE_BALANCE_INCANDESCENT: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "incandescent"

### WHITE_BALANCE_SHADE

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WHITE_BALANCE_SHADE: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "shade"

### WHITE_BALANCE_TWILIGHT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WHITE_BALANCE_TWILIGHT: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "twilight"

### WHITE_BALANCE_WARM_FLUORESCENT

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val WHITE_BALANCE_WARM_FLUORESCENT: String
```

**Deprecated:** *Deprecated in Java.*  

    Value: "warm-fluorescent"

## Public methods

### flatten

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun flatten(): String!
```

**Deprecated:** *Deprecated in Java.*

Creates a single string with all the parameters set in this Parameters object.

The[unflatten(java.lang.String)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#unflatten(kotlin.String))method does the reverse.

|                                                                                      Return                                                                                      ||
|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | a String with all values from this Parameters object, in semi-colon delimited key-value pairs |

### get

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun get(key: String!): String!
```

**Deprecated:** *Deprecated in Java.*

Returns the value of a String parameter.

|                                                       Parameters                                                        ||
|-------|------------------------------------------------------------------------------------------------------------------|
| `key` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the key name for the parameter |

|                                                        Return                                                        ||
|-----------------------------------------------------------------------------------|-----------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the String value of the parameter |

### getAntibanding

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAntibanding(): String!
```

**Deprecated:** *Deprecated in Java.*

Gets the current antibanding setting.

|                                                                        Return                                                                         ||
|-----------------------------------------------------------------------------------|--------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | current antibanding. null if antibanding setting is not supported. |

**See Also**

- [#ANTIBANDING_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#ANTIBANDING_AUTO:kotlin.String)
- [#ANTIBANDING_50HZ](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#ANTIBANDING_50HZ:kotlin.String)
- [#ANTIBANDING_60HZ](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#ANTIBANDING_60HZ:kotlin.String)
- [#ANTIBANDING_OFF](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#ANTIBANDING_OFF:kotlin.String)  

### getAutoExposureLock

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAutoExposureLock(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Gets the state of the auto-exposure lock. Applications should check[isAutoExposureLockSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isAutoExposureLockSupported())before using this method. See[setAutoExposureLock](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoExposureLock(kotlin.Boolean))for details about the lock.

|                                                                                            Return                                                                                            ||
|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | State of the auto-exposure lock. Returns true if auto-exposure is currently locked, and false otherwise. |

**See Also**

- [#setAutoExposureLock(boolean)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoExposureLock(kotlin.Boolean))  

### getAutoWhiteBalanceLock

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getAutoWhiteBalanceLock(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Gets the state of the auto-white balance lock. Applications should check[isAutoWhiteBalanceLockSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isAutoWhiteBalanceLockSupported())before using this method. See[setAutoWhiteBalanceLock](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoWhiteBalanceLock(kotlin.Boolean))for details about the lock.

|                                                                                                 Return                                                                                                 ||
|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | State of the auto-white balance lock. Returns true if auto-white balance is currently locked, and false otherwise. |

**See Also**

- [#setAutoWhiteBalanceLock(boolean)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoWhiteBalanceLock(kotlin.Boolean))  

### getColorEffect

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getColorEffect(): String!
```

**Deprecated:** *Deprecated in Java.*

Gets the current color effect setting.

|                                                                         Return                                                                          ||
|-----------------------------------------------------------------------------------|----------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | current color effect. null if color effect setting is not supported. |

**See Also**

- [#EFFECT_NONE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_NONE:kotlin.String)
- [#EFFECT_MONO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_MONO:kotlin.String)
- [#EFFECT_NEGATIVE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_NEGATIVE:kotlin.String)
- [#EFFECT_SOLARIZE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_SOLARIZE:kotlin.String)
- [#EFFECT_SEPIA](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_SEPIA:kotlin.String)
- [#EFFECT_POSTERIZE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_POSTERIZE:kotlin.String)
- [#EFFECT_WHITEBOARD](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_WHITEBOARD:kotlin.String)
- [#EFFECT_BLACKBOARD](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_BLACKBOARD:kotlin.String)
- [#EFFECT_AQUA](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#EFFECT_AQUA:kotlin.String)  

### getExposureCompensation

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getExposureCompensation(): Int
```

**Deprecated:** *Deprecated in Java.*

Gets the current exposure compensation index.

|                                                                                                                                                                                                                           Return                                                                                                                                                                                                                           ||
|----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | current exposure compensation index. The range is[getMinExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMinExposureCompensation())to[getMaxExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxExposureCompensation()). 0 means exposure is not adjusted. |

### getExposureCompensationStep

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getExposureCompensationStep(): Float
```

**Deprecated:** *Deprecated in Java.*

Gets the exposure compensation step.

|                                                                                                                                  Return                                                                                                                                  ||
|--------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | exposure compensation step. Applications can get EV by multiplying the exposure compensation index and step. Ex: if exposure compensation index is -6 and step is 0.333333333, EV is -2. |

### getFlashMode

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getFlashMode(): String!
```

**Deprecated:** *Deprecated in Java.*

Gets the current flash mode setting.

|                                                                       Return                                                                        ||
|-----------------------------------------------------------------------------------|------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | current flash mode. null if flash mode setting is not supported. |

**See Also**

- [#FLASH_MODE_OFF](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_OFF:kotlin.String)
- [#FLASH_MODE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_AUTO:kotlin.String)
- [#FLASH_MODE_ON](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_ON:kotlin.String)
- [#FLASH_MODE_RED_EYE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_RED_EYE:kotlin.String)
- [#FLASH_MODE_TORCH](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_TORCH:kotlin.String)  

### getFocalLength

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getFocalLength(): Float
```

**Deprecated:** *Deprecated in Java.*

Gets the focal length (in millimeter) of the camera.

|                                                                                 Return                                                                                  ||
|--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | the focal length. Returns -1.0 when the device doesn't report focal length information. |

### getFocusAreas

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getFocusAreas(): MutableList<Camera.Area!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the current focus areas. Camera driver uses the areas to decide focus.

Before using this API or[setFocusAreas(java.util.List)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setFocusAreas(kotlin.collections.MutableList)), apps should call[getMaxNumFocusAreas()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxNumFocusAreas())to know the maximum number of focus areas first. If the value is 0, focus area is not supported.

Each focus area is a rectangle with specified weight. The direction is relative to the sensor orientation, that is, what the sensor sees. The direction is not affected by the rotation or mirroring of[setDisplayOrientation(int)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setDisplayOrientation(kotlin.Int)). Coordinates of the rectangle range from -1000 to 1000. (-1000, -1000) is the upper left point. (1000, 1000) is the lower right point. The width and height of focus areas cannot be 0 or negative.

The weight must range from 1 to 1000. The weight should be interpreted as a per-pixel weight - all pixels in the area have the specified weight. This means a small area with the same weight as a larger area will have less influence on the focusing than the larger area. Focus areas can partially overlap and the driver will add the weights in the overlap region.

A special case of a`null`focus area list means the driver is free to select focus targets as it wants. For example, the driver may use more signals to select focus areas and change them dynamically. Apps can set the focus area list to`null`if they want the driver to completely control focusing.

Focus areas are relative to the current field of view ([getZoom()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getZoom())). No matter what the zoom level is, (-1000,-1000) represents the top of the currently visible camera frame. The focus area cannot be set to be outside the current field of view, even when using zoom.

Focus area only has effect if the current focus mode is[FOCUS_MODE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_AUTO:kotlin.String),[FOCUS_MODE_MACRO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_MACRO:kotlin.String),[FOCUS_MODE_CONTINUOUS_VIDEO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_CONTINUOUS_VIDEO:kotlin.String), or[FOCUS_MODE_CONTINUOUS_PICTURE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_CONTINUOUS_PICTURE:kotlin.String).

|                                                                                                                Return                                                                                                                ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Camera.Area](https://developer.android.com/reference/kotlin/android/hardware/Camera.Area)!>! | a list of current focus areas |

### getFocusDistances

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getFocusDistances(output: FloatArray!): Unit
```

**Deprecated:** *Deprecated in Java.*

Gets the distances from the camera to where an object appears to be in focus. The object is sharpest at the optimal focus distance. The depth of field is the far focus distance minus near focus distance.

Focus distances may change after calling[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback)),[cancelAutoFocus](https://developer.android.com/reference/kotlin/android/hardware/Camera#cancelAutoFocus()), or[startPreview()](https://developer.android.com/reference/kotlin/android/hardware/Camera#startPreview()). Applications can call[getParameters()](https://developer.android.com/reference/kotlin/android/hardware/Camera#getParameters())and this method anytime to get the latest focus distances. If the focus mode is FOCUS_MODE_CONTINUOUS_VIDEO, focus distances may change from time to time.

This method is intended to estimate the distance between the camera and the subject. After autofocus, the subject distance may be within near and far focus distance. However, the precision depends on the camera hardware, autofocus algorithm, the focus area, and the scene. The error can be large and it should be only used as a reference.

Far focus distance \>= optimal focus distance \>= near focus distance. If the focus distance is infinity, the value will be`Float.POSITIVE_INFINITY`.

|                                                                                                                                     Parameters                                                                                                                                     ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `output` | [FloatArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float-array/index.html)!:focus distances in meters. output must be a float array with three elements. Near focus distance, optimal focus distance, and far focus distance will be filled in the array. |

**See Also**

- [#FOCUS_DISTANCE_NEAR_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_DISTANCE_NEAR_INDEX:kotlin.Int)
- [#FOCUS_DISTANCE_OPTIMAL_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_DISTANCE_OPTIMAL_INDEX:kotlin.Int)
- [#FOCUS_DISTANCE_FAR_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_DISTANCE_FAR_INDEX:kotlin.Int)  

### getFocusMode

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getFocusMode(): String!
```

**Deprecated:** *Deprecated in Java.*

Gets the current focus mode setting.

|                                                                                                                                                                                                                   Return                                                                                                                                                                                                                    ||
|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | current focus mode. This method will always return a non-null value. Applications should call[autoFocus(android.hardware.Camera.AutoFocusCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#autoFocus(android.hardware.Camera.AutoFocusCallback))to start the focus if focus mode is FOCUS_MODE_AUTO or FOCUS_MODE_MACRO. |

**See Also**

- [#FOCUS_MODE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_AUTO:kotlin.String)
- [#FOCUS_MODE_INFINITY](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_INFINITY:kotlin.String)
- [#FOCUS_MODE_MACRO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_MACRO:kotlin.String)
- [#FOCUS_MODE_FIXED](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_FIXED:kotlin.String)
- [#FOCUS_MODE_EDOF](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_EDOF:kotlin.String)
- [#FOCUS_MODE_CONTINUOUS_VIDEO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FOCUS_MODE_CONTINUOUS_VIDEO:kotlin.String)  

### getHorizontalViewAngle

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getHorizontalViewAngle(): Float
```

**Deprecated:** *Deprecated in Java.*

Gets the horizontal angle of view in degrees.

|                                                                                    Return                                                                                     ||
|--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | horizontal angle of view. Returns -1.0 when the device doesn't report view angle information. |

### getInt

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getInt(key: String!): Int
```

**Deprecated:** *Deprecated in Java.*

Returns the value of an integer parameter.

|                                                       Parameters                                                        ||
|-------|------------------------------------------------------------------------------------------------------------------|
| `key` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the key name for the parameter |

|                                                   Return                                                   ||
|----------------------------------------------------------------------------|--------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the int value of the parameter |

### getJpegQuality

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getJpegQuality(): Int
```

**Deprecated:** *Deprecated in Java.*

Returns the quality setting for the JPEG picture.

|                                                    Return                                                     ||
|----------------------------------------------------------------------------|-----------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the JPEG picture quality setting. |

### getJpegThumbnailQuality

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getJpegThumbnailQuality(): Int
```

**Deprecated:** *Deprecated in Java.*

Returns the quality setting for the EXIF thumbnail in Jpeg picture.

|                                                           Return                                                            ||
|----------------------------------------------------------------------------|-------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the JPEG quality setting of the EXIF thumbnail. |

### getJpegThumbnailSize

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getJpegThumbnailSize(): Camera.Size!
```

**Deprecated:** *Deprecated in Java.*

Returns the dimensions for EXIF thumbnail in Jpeg picture.

|                                                                                Return                                                                                ||
|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|
| [Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)! | a Size object with the height and width setting for the EXIF thumbnails |

### getMaxExposureCompensation

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMaxExposureCompensation(): Int
```

**Deprecated:** *Deprecated in Java.*

Gets the maximum exposure compensation index.

|                                                                                                                                                                    Return                                                                                                                                                                    ||
|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | maximum exposure compensation index (\>=0). If both this method and[getMinExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMinExposureCompensation())return 0, exposure compensation is not supported. |

### getMaxNumDetectedFaces

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMaxNumDetectedFaces(): Int
```

**Deprecated:** *Deprecated in Java.*

Gets the maximum number of detected faces supported. This is the maximum length of the list returned from[FaceDetectionListener](https://developer.android.com/reference/kotlin/android/hardware/Camera.FaceDetectionListener). If the return value is 0, face detection of the specified type is not supported.

|                                                                  Return                                                                  ||
|----------------------------------------------------------------------------|--------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the maximum number of detected face supported by the camera. |

**See Also**

- [#startFaceDetection()](https://developer.android.com/reference/kotlin/android/hardware/Camera#startFaceDetection())  

### getMaxNumFocusAreas

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMaxNumFocusAreas(): Int
```

**Deprecated:** *Deprecated in Java.*

Gets the maximum number of focus areas supported. This is the maximum length of the list in[setFocusAreas(java.util.List)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setFocusAreas(kotlin.collections.MutableList))and[getFocusAreas()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusAreas()).

|                                                                 Return                                                                 ||
|----------------------------------------------------------------------------|------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the maximum number of focus areas supported by the camera. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusAreas()>  

### getMaxNumMeteringAreas

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMaxNumMeteringAreas(): Int
```

**Deprecated:** *Deprecated in Java.*

Gets the maximum number of metering areas supported. This is the maximum length of the list in[setMeteringAreas(java.util.List)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setMeteringAreas(kotlin.collections.MutableList))and[getMeteringAreas()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMeteringAreas()).

|                                                                  Return                                                                   ||
|----------------------------------------------------------------------------|---------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the maximum number of metering areas supported by the camera. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMeteringAreas()>  

### getMaxZoom

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMaxZoom(): Int
```

**Deprecated:** *Deprecated in Java.*

Gets the maximum zoom value allowed for snapshot. This is the maximum value that applications can set to[setZoom(int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setZoom(kotlin.Int)). Applications should call[isZoomSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isZoomSupported())before using this method. This value may change in different preview size. Applications should call this again after setting preview size.

|                                                           Return                                                            ||
|----------------------------------------------------------------------------|-------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the maximum zoom value supported by the camera. |

### getMeteringAreas

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMeteringAreas(): MutableList<Camera.Area!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the current metering areas. Camera driver uses these areas to decide exposure.

Before using this API or[setMeteringAreas(java.util.List)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setMeteringAreas(kotlin.collections.MutableList)), apps should call[getMaxNumMeteringAreas()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxNumMeteringAreas())to know the maximum number of metering areas first. If the value is 0, metering area is not supported.

Each metering area is a rectangle with specified weight. The direction is relative to the sensor orientation, that is, what the sensor sees. The direction is not affected by the rotation or mirroring of[setDisplayOrientation(int)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setDisplayOrientation(kotlin.Int)). Coordinates of the rectangle range from -1000 to 1000. (-1000, -1000) is the upper left point. (1000, 1000) is the lower right point. The width and height of metering areas cannot be 0 or negative.

The weight must range from 1 to 1000, and represents a weight for every pixel in the area. This means that a large metering area with the same weight as a smaller area will have more effect in the metering result. Metering areas can partially overlap and the driver will add the weights in the overlap region.

A special case of a`null`metering area list means the driver is free to meter as it chooses. For example, the driver may use more signals to select metering areas and change them dynamically. Apps can set the metering area list to`null`if they want the driver to completely control metering.

Metering areas are relative to the current field of view ([getZoom()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getZoom())). No matter what the zoom level is, (-1000,-1000) represents the top of the currently visible camera frame. The metering area cannot be set to be outside the current field of view, even when using zoom.

No matter what metering areas are, the final exposure are compensated by[setExposureCompensation(int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setExposureCompensation(kotlin.Int)).

|                                                                                                                 Return                                                                                                                  ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Camera.Area](https://developer.android.com/reference/kotlin/android/hardware/Camera.Area)!>! | a list of current metering areas |

### getMinExposureCompensation

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getMinExposureCompensation(): Int
```

**Deprecated:** *Deprecated in Java.*

Gets the minimum exposure compensation index.

|                                                                                                                                                                    Return                                                                                                                                                                    ||
|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | minimum exposure compensation index (\<=0). If both this method and[getMaxExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxExposureCompensation())return 0, exposure compensation is not supported. |

### getPictureFormat

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPictureFormat(): Int
```

**Deprecated:** *Deprecated in Java.*

Returns the image format for pictures.

|                                             Return                                             ||
|----------------------------------------------------------------------------|--------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the picture format |

**See Also**

- [android.graphics.ImageFormat](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#)  

### getPictureSize

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPictureSize(): Camera.Size!
```

**Deprecated:** *Deprecated in Java.*

Returns the dimension setting for pictures.

|                                                                          Return                                                                           ||
|---------------------------------------------------------------------------------------------|--------------------------------------------------------------|
| [Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)! | a Size object with the height and width setting for pictures |

### getPreferredPreviewSizeForVideo

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPreferredPreviewSizeForVideo(): Camera.Size!
```

**Deprecated:** *Deprecated in Java.*

Returns the preferred or recommended preview size (width and height) in pixels for video recording. Camcorder applications should set the preview size to a value that is not larger than the preferred preview size. In other words, the product of the width and height of the preview size should not be larger than that of the preferred preview size. In addition, we recommend to choose a preview size that has the same aspect ratio as the resolution of video to be recorded.

|                                                                                                                         Return                                                                                                                          ||
|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)! | the preferred preview size (width and height) in pixels for video recording if getSupportedVideoSizes() does not return null; otherwise, null is returned. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedVideoSizes()>  

### getPreviewFormat

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPreviewFormat(): Int
```

**Deprecated:** *Deprecated in Java.*

Returns the image format for preview frames got from[PreviewCallback](https://developer.android.com/reference/kotlin/android/hardware/Camera.PreviewCallback).

|                                             Return                                              ||
|----------------------------------------------------------------------------|---------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the preview format. |

**See Also**

- [android.graphics.ImageFormat](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#)
- [#setPreviewFormat](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewFormat(kotlin.Int))  

### getPreviewFpsRange

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPreviewFpsRange(range: IntArray!): Unit
```

**Deprecated:** *Deprecated in Java.*

Returns the current minimum and maximum preview fps. The values are one of the elements returned by[getSupportedPreviewFpsRange](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange()).

|                                                                  Return                                                                   ||
|------------------------------------------------------------------------------|-------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | range the minimum and maximum preview fps (scaled by 1000). |

**See Also**

- [#PREVIEW_FPS_MIN_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#PREVIEW_FPS_MIN_INDEX:kotlin.Int)
- [#PREVIEW_FPS_MAX_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#PREVIEW_FPS_MAX_INDEX:kotlin.Int)
- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange()>  

### getPreviewFrameRate

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPreviewFrameRate(): Int
```

**Deprecated:** *replaced by[getPreviewFpsRange(int[])](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreviewFpsRange(kotlin.IntArray))*

Returns the setting for the rate at which preview frames are received. This is the target frame rate. The actual frame rate depends on the driver.

|                                                         Return                                                         ||
|----------------------------------------------------------------------------|--------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the frame rate setting (frames per second) |

### getPreviewSize

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPreviewSize(): Camera.Size!
```

**Deprecated:** *Deprecated in Java.*

Returns the dimensions setting for preview pictures.

|                                                                                Return                                                                                ||
|---------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|
| [Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)! | a Size object with the width and height setting for the preview picture |

### getSceneMode

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSceneMode(): String!
```

**Deprecated:** *Deprecated in Java.*

Gets the current scene mode setting.

|                                                                                 Return                                                                                 ||
|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | one of SCENE_MODE_XXX string constant. null if scene mode setting is not supported. |

**See Also**

- [#SCENE_MODE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_AUTO:kotlin.String)
- [#SCENE_MODE_ACTION](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_ACTION:kotlin.String)
- [#SCENE_MODE_PORTRAIT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_PORTRAIT:kotlin.String)
- [#SCENE_MODE_LANDSCAPE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_LANDSCAPE:kotlin.String)
- [#SCENE_MODE_NIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_NIGHT:kotlin.String)
- [#SCENE_MODE_NIGHT_PORTRAIT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_NIGHT_PORTRAIT:kotlin.String)
- [#SCENE_MODE_THEATRE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_THEATRE:kotlin.String)
- [#SCENE_MODE_BEACH](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_BEACH:kotlin.String)
- [#SCENE_MODE_SNOW](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_SNOW:kotlin.String)
- [#SCENE_MODE_SUNSET](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_SUNSET:kotlin.String)
- [#SCENE_MODE_STEADYPHOTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_STEADYPHOTO:kotlin.String)
- [#SCENE_MODE_FIREWORKS](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_FIREWORKS:kotlin.String)
- [#SCENE_MODE_SPORTS](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_SPORTS:kotlin.String)
- [#SCENE_MODE_PARTY](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_PARTY:kotlin.String)
- [#SCENE_MODE_CANDLELIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_CANDLELIGHT:kotlin.String)
- [#SCENE_MODE_BARCODE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#SCENE_MODE_BARCODE:kotlin.String)  

### getSupportedAntibanding

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedAntibanding(): MutableList<String!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported antibanding values.

|                                                                                                                                       Return                                                                                                                                       ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>! | a list of supported antibanding values. null if antibanding setting is not supported. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getAntibanding()>  

### getSupportedColorEffects

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedColorEffects(): MutableList<String!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported color effects.

|                                                                                                                                     Return                                                                                                                                     ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>! | a list of supported color effects. null if color effect setting is not supported. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getColorEffect()>  

### getSupportedFlashModes

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedFlashModes(): MutableList<String!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported flash modes.

|                                                                                                                                   Return                                                                                                                                   ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>! | a list of supported flash modes. null if flash mode setting is not supported. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFlashMode()>  

### getSupportedFocusModes

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedFocusModes(): MutableList<String!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported focus modes.

|                                                                                                                                             Return                                                                                                                                             ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>! | a list of supported focus modes. This method will always return a list with at least one element. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusMode()>  

### getSupportedJpegThumbnailSizes

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedJpegThumbnailSizes(): MutableList<Camera.Size!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported jpeg thumbnail sizes.

|                                                                                                                                                                    Return                                                                                                                                                                    ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!>! | a list of Size object. This method will always return a list with at least two elements. Size 0,0 (no thumbnail) is always supported. |

### getSupportedPictureFormats

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedPictureFormats(): MutableList<Int!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported picture formats.

|                                                                                                                                       Return                                                                                                                                       ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)!>! | supported picture formats. This method will always return a list with at least one element. |

**See Also**

- [android.graphics.ImageFormat](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#)  

### getSupportedPictureSizes

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedPictureSizes(): MutableList<Camera.Size!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported picture sizes.

|                                                                                                                                                   Return                                                                                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!>! | a list of supported picture sizes. This method will always return a list with at least one element. |

### getSupportedPreviewFormats

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedPreviewFormats(): MutableList<Int!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported preview formats.[android.graphics.ImageFormat#NV21](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#NV21:kotlin.Int)is always supported.[android.graphics.ImageFormat#YV12](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YV12:kotlin.Int)is always supported since API level 12.

|                                                                                                                                            Return                                                                                                                                            ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)!>! | a list of supported preview formats. This method will always return a list with at least one element. |

**See Also**

- [android.graphics.ImageFormat](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#)
- [#setPreviewFormat](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewFormat(kotlin.Int))  

### getSupportedPreviewFpsRange

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedPreviewFpsRange(): MutableList<IntArray!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported preview fps (frame-per-second) ranges. Each range contains a minimum fps and maximum fps. If minimum fps equals to maximum fps, the camera outputs frames in fixed frame rate. If not, the camera outputs frames in auto frame rate. The actual frame rate fluctuates between the minimum and the maximum. The values are multiplied by 1000 and represented in integers. For example, if frame rate is 26.623 frames per second, the value is 26623.

|                                                                                                                                                                                                                             Return                                                                                                                                                                                                                             ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[IntArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html)!>! | a list of supported preview fps ranges. This method returns a list with at least one element. Every element is an int array of two values - minimum fps and maximum fps. The list is sorted from small to large (first by maximum fps and then minimum fps). |

**See Also**

- [#PREVIEW_FPS_MIN_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#PREVIEW_FPS_MIN_INDEX:kotlin.Int)
- [#PREVIEW_FPS_MAX_INDEX](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#PREVIEW_FPS_MAX_INDEX:kotlin.Int)  

### getSupportedPreviewFrameRates

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedPreviewFrameRates(): MutableList<Int!>!
```

**Deprecated:** *replaced by[getSupportedPreviewFpsRange()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange())*

Gets the supported preview frame rates.

|                                                                                                                                        Return                                                                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)!>! | a list of supported preview frame rates. null if preview frame rate setting is not supported. |

### getSupportedPreviewSizes

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedPreviewSizes(): MutableList<Camera.Size!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported preview sizes.

|                                                                                                                                             Return                                                                                                                                             ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!>! | a list of Size object. This method will always return a list with at least one element. |

### getSupportedSceneModes

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedSceneModes(): MutableList<String!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported scene modes.

|                                                                                                                                   Return                                                                                                                                   ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>! | a list of supported scene modes. null if scene mode setting is not supported. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSceneMode()>  

### getSupportedVideoSizes

Added in[API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedVideoSizes(): MutableList<Camera.Size!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported video frame sizes that can be used by MediaRecorder.

If the returned list is not null, the returned list will contain at least one Size and one of the sizes in the returned list must be passed to MediaRecorder.setVideoSize() for camcorder application if camera is used as the video source. In this case, the size of the preview can be different from the resolution of the recorded video during video recording.

Exception on 176x144 (QCIF) resolution: Camera devices usually have a fixed capability for downscaling from larger resolution to smaller, and the QCIF resolution sometimes is not fully supported due to this limitation on devices with high-resolution image sensors. Therefore, trying to configure a QCIF video resolution with any preview or picture size larger than 1920x1080 (either width or height) might not be supported, and[setParameters(android.hardware.Camera.Parameters)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setParameters(android.hardware.Camera.Parameters))will throw a RuntimeException if it is not.

|                                                                                                                                                   Return                                                                                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Camera.Size](https://developer.android.com/reference/kotlin/android/hardware/Camera.Size)!>! | a list of Size object if camera has separate preview and video output; otherwise, null is returned. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPreferredPreviewSizeForVideo()>  

### getSupportedWhiteBalance

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getSupportedWhiteBalance(): MutableList<String!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the supported white balance.

|                                                                                                                                     Return                                                                                                                                      ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>! | a list of supported white balance. null if white balance setting is not supported. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getWhiteBalance()>  

### getVerticalViewAngle

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getVerticalViewAngle(): Float
```

**Deprecated:** *Deprecated in Java.*

Gets the vertical angle of view in degrees.

|                                                                                   Return                                                                                    ||
|--------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | vertical angle of view. Returns -1.0 when the device doesn't report view angle information. |

### getVideoStabilization

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getVideoStabilization(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Get the current state of video stabilization. See[setVideoStabilization](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setVideoStabilization(kotlin.Boolean))for details of video stabilization.

|                                                           Return                                                           ||
|------------------------------------------------------------------------------------|----------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if video stabilization is enabled |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isVideoStabilizationSupported()>
- [#setVideoStabilization(boolean)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setVideoStabilization(kotlin.Boolean))  

### getWhiteBalance

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getWhiteBalance(): String!
```

**Deprecated:** *Deprecated in Java.*

Gets the current white balance setting.

|                                                                          Return                                                                           ||
|-----------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | current white balance. null if white balance setting is not supported. |

**See Also**

- [#WHITE_BALANCE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_AUTO:kotlin.String)
- [#WHITE_BALANCE_INCANDESCENT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_INCANDESCENT:kotlin.String)
- [#WHITE_BALANCE_FLUORESCENT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_FLUORESCENT:kotlin.String)
- [#WHITE_BALANCE_WARM_FLUORESCENT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_WARM_FLUORESCENT:kotlin.String)
- [#WHITE_BALANCE_DAYLIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_DAYLIGHT:kotlin.String)
- [#WHITE_BALANCE_CLOUDY_DAYLIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_CLOUDY_DAYLIGHT:kotlin.String)
- [#WHITE_BALANCE_TWILIGHT](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_TWILIGHT:kotlin.String)
- [#WHITE_BALANCE_SHADE](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#WHITE_BALANCE_SHADE:kotlin.String)  

### getZoom

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getZoom(): Int
```

**Deprecated:** *Deprecated in Java.*

Gets current zoom value. This also works when smooth zoom is in progress. Applications should check[isZoomSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isZoomSupported())before using this method.

|                                                                                                                                Return                                                                                                                                ||
|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | the current zoom value. The range is 0 to[getMaxZoom](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxZoom()). 0 means the camera is not zoomed. |

### getZoomRatios

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getZoomRatios(): MutableList<Int!>!
```

**Deprecated:** *Deprecated in Java.*

Gets the zoom ratios of all zoom values. Applications should check[isZoomSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isZoomSupported())before using this method.

|                                                                                                                                                                                                                                                                       Return                                                                                                                                                                                                                                                                        ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)!>! | the zoom ratios in 1/100 increments. Ex: a zoom of 3.2x is returned as 320. The number of elements is[getMaxZoom](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxZoom())+ 1. The list is sorted from small to large. The first element is always 100. The last element is the zoom ratio of the maximum zoom value. |

### isAutoExposureLockSupported

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isAutoExposureLockSupported(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Returns true if auto-exposure locking is supported. Applications should call this before trying to lock auto-exposure. See[setAutoExposureLock](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoExposureLock(kotlin.Boolean))for details about the lock.

|                                                            Return                                                            ||
|------------------------------------------------------------------------------------|------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if auto-exposure lock is supported. |

**See Also**

- [#setAutoExposureLock(boolean)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoExposureLock(kotlin.Boolean))  

### isAutoWhiteBalanceLockSupported

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isAutoWhiteBalanceLockSupported(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Returns true if auto-white balance locking is supported. Applications should call this before trying to lock auto-white balance. See[setAutoWhiteBalanceLock](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoWhiteBalanceLock(kotlin.Boolean))for details about the lock.

|                                                              Return                                                               ||
|------------------------------------------------------------------------------------|-----------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if auto-white balance lock is supported. |

**See Also**

- [#setAutoWhiteBalanceLock(boolean)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoWhiteBalanceLock(kotlin.Boolean))  

### isSmoothZoomSupported

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isSmoothZoomSupported(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Returns true if smooth zoom is supported. Applications should call this before using other smooth zoom methods.

|                                                        Return                                                         ||
|------------------------------------------------------------------------------------|-----------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if smooth zoom is supported. |

### isVideoSnapshotSupported

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isVideoSnapshotSupported(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Returns true if video snapshot is supported. That is, applications can call[takePicture(android.hardware.Camera.ShutterCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#takePicture(android.hardware.Camera.ShutterCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback))during recording. Applications do not need to call[startPreview()](https://developer.android.com/reference/kotlin/android/hardware/Camera#startPreview())after taking a picture. The preview will be still active. Other than that, taking a picture during recording is identical to taking a picture normally. All settings and methods related to takePicture work identically. Ex:[getPictureSize()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getPictureSize()),[getSupportedPictureSizes()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPictureSizes()),[setJpegQuality(int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setJpegQuality(kotlin.Int)),[setRotation(int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setRotation(kotlin.Int)), and etc. The picture will have an EXIF header.[FLASH_MODE_AUTO](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_AUTO:kotlin.String)and[FLASH_MODE_ON](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#FLASH_MODE_ON:kotlin.String)also still work, but the video will record the flash.

Applications can set shutter callback as null to avoid the shutter sound. It is also recommended to set raw picture and post view callbacks to null to avoid the interrupt of preview display.

Field-of-view of the recorded video may be different from that of the captured pictures. The maximum size of a video snapshot may be smaller than that for regular still captures. If the current picture size is set higher than can be supported by video snapshot, the picture will be captured at the maximum supported size instead.

|                                                          Return                                                          ||
|------------------------------------------------------------------------------------|--------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if video snapshot is supported. |

### isVideoStabilizationSupported

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isVideoStabilizationSupported(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Returns true if video stabilization is supported. See[setVideoStabilization](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setVideoStabilization(kotlin.Boolean))for details of video stabilization.

|                                                            Return                                                            ||
|------------------------------------------------------------------------------------|------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if video stabilization is supported |

**See Also**

- [#setVideoStabilization(boolean)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setVideoStabilization(kotlin.Boolean))
- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getVideoStabilization()>  

### isZoomSupported

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun isZoomSupported(): Boolean
```

**Deprecated:** *Deprecated in Java.*

Returns true if zoom is supported. Applications should call this before using other zoom methods.

|                                                     Return                                                     ||
|------------------------------------------------------------------------------------|----------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if zoom is supported. |

### remove

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun remove(key: String!): Unit
```

**Deprecated:** *Deprecated in Java.*  

### removeGpsData

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun removeGpsData(): Unit
```

**Deprecated:** *Deprecated in Java.*

Removes GPS latitude, longitude, altitude, and timestamp from the parameters.  

### set

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun set(
    key: String!, 
    value: Int
): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets an integer parameter.

|                                                        Parameters                                                         ||
|---------|------------------------------------------------------------------------------------------------------------------|
| `key`   | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the key name for the parameter |
| `value` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the int value of the parameter        |

### set

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun set(
    key: String!, 
    value: String!
): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets a String parameter.

|                                                          Parameters                                                          ||
|---------|---------------------------------------------------------------------------------------------------------------------|
| `key`   | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the key name for the parameter    |
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the String value of the parameter |

### setAntibanding

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setAntibanding(antibanding: String!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the antibanding.

|                                                       Parameters                                                        ||
|---------------|----------------------------------------------------------------------------------------------------------|
| `antibanding` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:new antibanding value. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getAntibanding()>  

### setAutoExposureLock

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setAutoExposureLock(toggle: Boolean): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the auto-exposure lock state. Applications should check[isAutoExposureLockSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isAutoExposureLockSupported())before using this method.

If set to true, the camera auto-exposure routine will immediately pause until the lock is set to false. Exposure compensation settings changes will still take effect while auto-exposure is locked.

If auto-exposure is already locked, setting this to true again has no effect (the driver will not recalculate exposure values).

Stopping preview with[stopPreview()](https://developer.android.com/reference/kotlin/android/hardware/Camera#stopPreview()), or triggering still image capture with[takePicture(android.hardware.Camera.ShutterCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#takePicture(android.hardware.Camera.ShutterCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback)), will not change the lock.

Exposure compensation, auto-exposure lock, and auto-white balance lock can be used to capture an exposure-bracketed burst of images, for example.

Auto-exposure state, including the lock state, will not be maintained after camera[release()](https://developer.android.com/reference/kotlin/android/hardware/Camera#release())is called. Locking auto-exposure after[open()](https://developer.android.com/reference/kotlin/android/hardware/Camera#open())but before the first call to[startPreview()](https://developer.android.com/reference/kotlin/android/hardware/Camera#startPreview())will not allow the auto-exposure routine to run at all, and may result in severely over- or under-exposed images.

|                                                                                                                   Parameters                                                                                                                   ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `toggle` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):new state of the auto-exposure lock. True means that auto-exposure is locked, false means that the auto-exposure routine is free to run normally. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getAutoExposureLock()>  

### setAutoWhiteBalanceLock

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setAutoWhiteBalanceLock(toggle: Boolean): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the auto-white balance lock state. Applications should check[isAutoWhiteBalanceLockSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isAutoWhiteBalanceLockSupported())before using this method.

If set to true, the camera auto-white balance routine will immediately pause until the lock is set to false.

If auto-white balance is already locked, setting this to true again has no effect (the driver will not recalculate white balance values).

Stopping preview with[stopPreview()](https://developer.android.com/reference/kotlin/android/hardware/Camera#stopPreview()), or triggering still image capture with[takePicture(android.hardware.Camera.ShutterCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#takePicture(android.hardware.Camera.ShutterCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback)), will not change the the lock.

Changing the white balance mode with[setWhiteBalance](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setWhiteBalance(kotlin.String))will release the auto-white balance lock if it is set.

Exposure compensation, AE lock, and AWB lock can be used to capture an exposure-bracketed burst of images, for example. Auto-white balance state, including the lock state, will not be maintained after camera[release()](https://developer.android.com/reference/kotlin/android/hardware/Camera#release())is called. Locking auto-white balance after[open()](https://developer.android.com/reference/kotlin/android/hardware/Camera#open())but before the first call to[startPreview()](https://developer.android.com/reference/kotlin/android/hardware/Camera#startPreview())will not allow the auto-white balance routine to run at all, and may result in severely incorrect color in captured images.

|                                                                                                                          Parameters                                                                                                                           ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `toggle` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):new state of the auto-white balance lock. True means that auto-white balance is locked, false means that the auto-white balance routine is free to run normally. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getAutoWhiteBalanceLock()>
- [#setWhiteBalance(String)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setWhiteBalance(kotlin.String))  

### setColorEffect

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setColorEffect(value: String!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the current color effect setting.

|                                                  Parameters                                                  ||
|---------|-----------------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:new color effect. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getColorEffect()>  

### setExposureCompensation

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setExposureCompensation(value: Int): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the exposure compensation index.

|                                                                                                                                                                                                                                                                                                             Parameters                                                                                                                                                                                                                                                                                                              ||
|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `value` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):exposure compensation index. The valid value range is from[getMinExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMinExposureCompensation())(inclusive) to[getMaxExposureCompensation](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxExposureCompensation())(inclusive). 0 means exposure is not adjusted. Application should call getMinExposureCompensation and getMaxExposureCompensation to know if exposure compensation is supported. |

### setFlashMode

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setFlashMode(value: String!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the flash mode.

|                                               Parameters                                               ||
|---------|-----------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:flash mode. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFlashMode()>  

### setFocusAreas

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setFocusAreas(focusAreas: MutableList<Camera.Area!>!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets focus areas. See[getFocusAreas()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusAreas())for documentation.

|                                                                                                              Parameters                                                                                                               ||
|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `focusAreas` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Camera.Area](https://developer.android.com/reference/kotlin/android/hardware/Camera.Area)!\>!:the focus areas |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusAreas()>  

### setFocusMode

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setFocusMode(value: String!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the focus mode.

|                                               Parameters                                               ||
|---------|-----------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:focus mode. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getFocusMode()>  

### setGpsAltitude

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setGpsAltitude(altitude: Double): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets GPS altitude. This will be stored in JPEG EXIF header.

|                                                      Parameters                                                      ||
|------------|----------------------------------------------------------------------------------------------------------|
| `altitude` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):GPS altitude in meters. |

### setGpsLatitude

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setGpsLatitude(latitude: Double): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets GPS latitude coordinate. This will be stored in JPEG EXIF header.

|                                                      Parameters                                                       ||
|------------|-----------------------------------------------------------------------------------------------------------|
| `latitude` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):GPS latitude coordinate. |

### setGpsLongitude

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setGpsLongitude(longitude: Double): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets GPS longitude coordinate. This will be stored in JPEG EXIF header.

|                                                       Parameters                                                        ||
|-------------|------------------------------------------------------------------------------------------------------------|
| `longitude` | [Double](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html):GPS longitude coordinate. |

### setGpsProcessingMethod

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setGpsProcessingMethod(processing_method: String!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets GPS processing method. The method will be stored in a UTF-8 string up to 31 bytes long, in the JPEG EXIF header.

|                                                                     Parameters                                                                     ||
|---------------------|-------------------------------------------------------------------------------------------------------------------------------|
| `processing_method` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:The processing method to get this location. |

### setGpsTimestamp

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setGpsTimestamp(timestamp: Long): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets GPS timestamp. This will be stored in JPEG EXIF header.

|                                                                   Parameters                                                                    ||
|-------------|------------------------------------------------------------------------------------------------------------------------------------|
| `timestamp` | [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html):GPS timestamp (UTC in seconds since January 1, 1970). |

### setJpegQuality

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setJpegQuality(quality: Int): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets Jpeg quality of captured picture.

|                                                                                 Parameters                                                                                  ||
|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `quality` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the JPEG quality of captured picture. The range is 1 to 100, with 100 being the best. |

### setJpegThumbnailQuality

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setJpegThumbnailQuality(quality: Int): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the quality of the EXIF thumbnail in Jpeg picture.

|                                                                                  Parameters                                                                                   ||
|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `quality` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the JPEG quality of the EXIF thumbnail. The range is 1 to 100, with 100 being the best. |

### setJpegThumbnailSize

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setJpegThumbnailSize(
    width: Int, 
    height: Int
): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the dimensions for EXIF thumbnail in Jpeg picture. If applications set both width and height to 0, EXIF will not contain thumbnail.

Applications need to consider the display orientation. See[setPreviewSize(int,int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewSize(kotlin.Int,%20kotlin.Int))for reference.

|                                                         Parameters                                                          ||
|----------|-------------------------------------------------------------------------------------------------------------------|
| `width`  | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the width of the thumbnail, in pixels  |
| `height` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the height of the thumbnail, in pixels |

**See Also**

- [#setPreviewSize(int,int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewSize(kotlin.Int,%20kotlin.Int))  

### setMeteringAreas

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setMeteringAreas(meteringAreas: MutableList<Camera.Area!>!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets metering areas. See[getMeteringAreas()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMeteringAreas())for documentation.

|                                                                                                                 Parameters                                                                                                                  ||
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `meteringAreas` | [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Camera.Area](https://developer.android.com/reference/kotlin/android/hardware/Camera.Area)!\>!:the metering areas |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMeteringAreas()>  

### setPictureFormat

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setPictureFormat(pixel_format: Int): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the image format for pictures.

|                                                                                     Parameters                                                                                     ||
|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `pixel_format` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the desired picture format (ImageFormat.NV21, ImageFormat.RGB_565, or ImageFormat.JPEG) |

**See Also**

- [android.graphics.ImageFormat](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#)  

### setPictureSize

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setPictureSize(
    width: Int, 
    height: Int
): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the dimensions for pictures.

Applications need to consider the display orientation. See[setPreviewSize(int,int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewSize(kotlin.Int,%20kotlin.Int))for reference.

Exception on 176x144 (QCIF) resolution: Camera devices usually have a fixed capability for downscaling from larger resolution to smaller, and the QCIF resolution sometimes is not fully supported due to this limitation on devices with high-resolution image sensors. Therefore, trying to configure a QCIF picture size with any preview or video size larger than 1920x1080 (either width or height) might not be supported, and[setParameters(android.hardware.Camera.Parameters)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setParameters(android.hardware.Camera.Parameters))might throw a RuntimeException if it is not.

|                                                       Parameters                                                        ||
|----------|---------------------------------------------------------------------------------------------------------------|
| `width`  | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the width for pictures, in pixels  |
| `height` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the height for pictures, in pixels |

**See Also**

- [#setPreviewSize(int,int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewSize(kotlin.Int,%20kotlin.Int))  

### setPreviewFormat

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setPreviewFormat(pixel_format: Int): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the image format for preview pictures.

If this is never called, the default format will be[android.graphics.ImageFormat#NV21](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#NV21:kotlin.Int), which uses the NV21 encoding format.

Use[Parameters.getSupportedPreviewFormats](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFormats())to get a list of the available preview formats.

It is strongly recommended that either[android.graphics.ImageFormat#NV21](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#NV21:kotlin.Int)or[android.graphics.ImageFormat#YV12](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YV12:kotlin.Int)is used, since they are supported by all camera devices.

For YV12, the image buffer that is received is not necessarily tightly packed, as there may be padding at the end of each row of pixel data, as described in[android.graphics.ImageFormat#YV12](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#YV12:kotlin.Int). For camera callback data, it can be assumed that the stride of the Y and UV data is the smallest possible that meets the alignment requirements. That is, if the preview size is width x height, then the following equations describe the buffer index for the beginning of row y for the Y plane and row c for the U and V planes:  

```kotlin
<code>yStride   = (int) ceil(width / 16.0) * 16;
  uvStride  = (int) ceil( (yStride / 2) / 16.0) * 16;
  ySize     = yStride * height;
  uvSize    = uvStride * height / 2;
  yRowIndex = yStride * y;
  uRowIndex = ySize + uvSize + uvStride * c;
  vRowIndex = ySize + uvStride * c;
  size      = ySize + uvSize * 2;
  </code>
```

|                                                                                                                                                               Parameters                                                                                                                                                                ||
|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `pixel_format` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the desired preview picture format, defined by one of the[android.graphics.ImageFormat](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#)constants. (E.g., ImageFormat.NV21 (default), or ImageFormat.YV12) |

**See Also**

- [android.graphics.ImageFormat](https://developer.android.com/reference/kotlin/android/graphics/ImageFormat.html#)
- [android.hardware.Camera.Parameters#getSupportedPreviewFormats](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFormats())  

### setPreviewFpsRange

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setPreviewFpsRange(
    min: Int, 
    max: Int
): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the minimum and maximum preview fps. This controls the rate of preview frames received in[PreviewCallback](https://developer.android.com/reference/kotlin/android/hardware/Camera.PreviewCallback). The minimum and maximum preview fps must be one of the elements from[getSupportedPreviewFpsRange](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange()).

|                                                         Parameters                                                          ||
|-------|----------------------------------------------------------------------------------------------------------------------|
| `min` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the minimum preview fps (scaled by 1000). |
| `max` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the maximum preview fps (scaled by 1000). |

|                       Exceptions                       ||
|------------------------------|--------------------------|
| `java.lang.RuntimeException` | if fps range is invalid. |

**See Also**

- [#setPreviewCallbackWithBuffer(Camera.PreviewCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setPreviewCallbackWithBuffer(android.hardware.Camera.PreviewCallback))
- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSupportedPreviewFpsRange()>  

### setPreviewFrameRate

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setPreviewFrameRate(fps: Int): Unit
```

**Deprecated:** *replaced by[setPreviewFpsRange(int,int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPreviewFpsRange(kotlin.Int,%20kotlin.Int))*

Sets the rate at which preview frames are received. This is the target frame rate. The actual frame rate depends on the driver.

|                                                      Parameters                                                      ||
|-------|---------------------------------------------------------------------------------------------------------------|
| `fps` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the frame rate (frames per second) |

### setPreviewSize

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setPreviewSize(
    width: Int, 
    height: Int
): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the dimensions for preview pictures. If the preview has already started, applications should stop the preview first before changing preview size. The sides of width and height are based on camera orientation. That is, the preview size is the size before it is rotated by display orientation. So applications need to consider the display orientation while setting preview size. For example, suppose the camera supports both 480x320 and 320x480 preview sizes. The application wants a 3:2 preview ratio. If the display orientation is set to 0 or 180, preview size should be set to 480x320. If the display orientation is set to 90 or 270, preview size should be set to 320x480. The display orientation should also be considered while setting picture size and thumbnail size. Exception on 176x144 (QCIF) resolution: Camera devices usually have a fixed capability for downscaling from larger resolution to smaller, and the QCIF resolution sometimes is not fully supported due to this limitation on devices with high-resolution image sensors. Therefore, trying to configure a QCIF preview size with any picture or video size larger than 1920x1080 (either width or height) might not be supported, and[setParameters(android.hardware.Camera.Parameters)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setParameters(android.hardware.Camera.Parameters))might throw a RuntimeException if it is not.

|                                                         Parameters                                                         ||
|----------|------------------------------------------------------------------------------------------------------------------|
| `width`  | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the width of the pictures, in pixels  |
| `height` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the height of the pictures, in pixels |

**See Also**

- [#setDisplayOrientation(int)](https://developer.android.com/reference/kotlin/android/hardware/Camera#setDisplayOrientation(kotlin.Int))
- [#getCameraInfo(int, CameraInfo)](https://developer.android.com/reference/kotlin/android/hardware/Camera#getCameraInfo(kotlin.Int,%20android.hardware.Camera.CameraInfo))
- [#setPictureSize(int, int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setPictureSize(kotlin.Int,%20kotlin.Int))
- [#setJpegThumbnailSize(int, int)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setJpegThumbnailSize(kotlin.Int,%20kotlin.Int))  

### setRecordingHint

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setRecordingHint(hint: Boolean): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets recording mode hint. This tells the camera that the intent of the application is to record videos[android.media.MediaRecorder#start()](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.html#start()), not to take still pictures[takePicture(android.hardware.Camera.ShutterCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback,android.hardware.Camera.PictureCallback)](https://developer.android.com/reference/kotlin/android/hardware/Camera#takePicture(android.hardware.Camera.ShutterCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback)). Using this hint can allow MediaRecorder.start() to start faster or with fewer glitches on output. This should be called before starting preview for the best result, but can be changed while the preview is active. The default value is false. The app can still call takePicture() when the hint is true or call MediaRecorder.start() when the hint is false. But the performance may be worse.

|                                                                                                                        Parameters                                                                                                                         ||
|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `hint` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if the apps intend to record videos using[android.media.MediaRecorder](https://developer.android.com/reference/kotlin/android/media/MediaRecorder.html#). |

### setRotation

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setRotation(rotation: Int): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the clockwise rotation angle in degrees relative to the orientation of the camera. This affects the pictures returned from JPEG[PictureCallback](https://developer.android.com/reference/kotlin/android/hardware/Camera.PictureCallback). The camera driver may set orientation in the EXIF header without rotating the picture. Or the driver may rotate the picture and the EXIF thumbnail. If the Jpeg picture is rotated, the orientation in the EXIF header will be missing or 1 (row #0 is top and column #0 is left side).

If applications want to rotate the picture to match the orientation of what users see, apps should use[android.view.OrientationEventListener](https://developer.android.com/reference/kotlin/android/view/OrientationEventListener.html#)and[android.hardware.Camera.CameraInfo](https://developer.android.com/reference/kotlin/android/hardware/Camera.CameraInfo). The value from OrientationEventListener is relative to the natural orientation of the device. CameraInfo.orientation is the angle between camera orientation and natural device orientation. The sum of the two is the rotation angle for back-facing camera. The difference of the two is the rotation angle for front-facing camera. Note that the JPEG pictures of front-facing cameras are not mirrored as in preview display.

For example, suppose the natural orientation of the device is portrait. The device is rotated 270 degrees clockwise, so the device orientation is 270. Suppose a back-facing camera sensor is mounted in landscape and the top side of the camera sensor is aligned with the right edge of the display in natural orientation. So the camera orientation is 90. The rotation should be set to 0 (270 + 90).

The reference code is as follows.  

```kotlin
public void onOrientationChanged(int orientation) {
      if (orientation == ORIENTATION_UNKNOWN) return;
      android.hardware.Camera.CameraInfo info =
             new android.hardware.Camera.CameraInfo();
      android.hardware.Camera.getCameraInfo(cameraId, info);
      orientation = (orientation + 45) / 90 * 90;
      int rotation = 0;
      if (info.facing == CameraInfo.CAMERA_FACING_FRONT) {
          rotation = (info.orientation - orientation + 360) % 360;
      } else {  // back-facing camera
          rotation = (info.orientation + orientation) % 360;
      }
      mParameters.setRotation(rotation);
  }
  
```

|                                                                                               Parameters                                                                                                ||
|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `rotation` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):The rotation angle in degrees relative to the orientation of the camera. Rotation can only be 0, 90, 180 or 270. |

|                             Exceptions                              ||
|--------------------------------------|-------------------------------|
| `java.lang.IllegalArgumentException` | if rotation value is invalid. |

**See Also**

- [android.view.OrientationEventListener](https://developer.android.com/reference/kotlin/android/view/OrientationEventListener.html#)
- [#getCameraInfo(int, CameraInfo)](https://developer.android.com/reference/kotlin/android/hardware/Camera#getCameraInfo(kotlin.Int,%20android.hardware.Camera.CameraInfo))  

### setSceneMode

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setSceneMode(value: String!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the scene mode. Changing scene mode may override other parameters (such as flash mode, focus mode, white balance). For example, suppose originally flash mode is on and supported flash modes are on/off. In night scene mode, both flash mode and supported flash mode may be changed to off. After setting scene mode, applications should call getParameters to know if some parameters are changed.

|                                               Parameters                                               ||
|---------|-----------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:scene mode. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getSceneMode()>  

### setVideoStabilization

Added in[API level 15](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setVideoStabilization(toggle: Boolean): Unit
```

**Deprecated:** *Deprecated in Java.*

Enables and disables video stabilization. Use[isVideoStabilizationSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isVideoStabilizationSupported())to determine if calling this method is valid.

Video stabilization reduces the shaking due to the motion of the camera in both the preview stream and in recorded videos, including data received from the preview callback. It does not reduce motion blur in images captured with android.hardware.Camera#takePicture.

Video stabilization can be enabled and disabled while preview or recording is active, but toggling it may cause a jump in the video stream that may be undesirable in a recorded video.

|                                                                                    Parameters                                                                                     ||
|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `toggle` | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):Set to true to enable video stabilization, and false to disable video stabilization. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isVideoStabilizationSupported()>
- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getVideoStabilization()>  

### setWhiteBalance

Added in[API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setWhiteBalance(value: String!): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets the white balance. Changing the setting will release the auto-white balance lock. It is recommended not to change white balance and AWB lock at the same time.

|                                                  Parameters                                                   ||
|---------|------------------------------------------------------------------------------------------------------|
| `value` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:new white balance. |

**See Also**

- <https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getWhiteBalance()>
- [#setAutoWhiteBalanceLock(boolean)](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#setAutoWhiteBalanceLock(kotlin.Boolean))  

### setZoom

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun setZoom(value: Int): Unit
```

**Deprecated:** *Deprecated in Java.*

Sets current zoom value. If the camera is zoomed (value \> 0), the actual picture size may be smaller than picture size setting. Applications can check the actual picture size after picture is returned from[PictureCallback](https://developer.android.com/reference/kotlin/android/hardware/Camera.PictureCallback). The preview size remains the same in zoom. Applications should check[isZoomSupported](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#isZoomSupported())before using this method.

|                                                                                                              Parameters                                                                                                              ||
|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `value` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):zoom value. The valid range is 0 to[getMaxZoom](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#getMaxZoom()). |

### unflatten

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun unflatten(flattened: String!): Unit
```

**Deprecated:** *Deprecated in Java.*

Takes a flattened string of parameters and adds each one to this Parameters object.

The[flatten()](https://developer.android.com/reference/kotlin/android/hardware/Camera.Parameters#flatten())method does the reverse.

|                                                                               Parameters                                                                               ||
|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| `flattened` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:a String of parameters (key-value paired) that are semi-colon delimited |