Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/hardware/Camera.CameraInfo#constants) \| [Fields](https://developer.android.com/reference/android/hardware/Camera.CameraInfo#lfields) \| [Ctors](https://developer.android.com/reference/android/hardware/Camera.CameraInfo#pubctors) \| [Inherited Methods](https://developer.android.com/reference/android/hardware/Camera.CameraInfo#inhmethods)

# Camera.CameraInfo

*** ** * ** ***

` public static class Camera.CameraInfo `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.hardware.Camera.CameraInfo |

<br />

*** ** * ** ***

<br />

**This class was deprecated in API level 21.**   

We recommend using the new `https://developer.android.com/reference/android/hardware/camera2/package-summary` API for new applications.

Information about a camera

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/hardware/Camera.CameraInfo#CAMERA_FACING_BACK` The facing of the camera is opposite to that of the screen. |
| `int` | `https://developer.android.com/reference/android/hardware/Camera.CameraInfo#CAMERA_FACING_FRONT` The facing of the camera is the same as that of the screen. |

| ### Fields ||
|---|---|
| ` public boolean` | `https://developer.android.com/reference/android/hardware/Camera.CameraInfo#canDisableShutterSound` <br /> Whether the shutter sound can be disabled. |
| ` public int` | `https://developer.android.com/reference/android/hardware/Camera.CameraInfo#facing` The direction that the camera faces. |
| ` public int` | `https://developer.android.com/reference/android/hardware/Camera.CameraInfo#orientation` <br /> The orientation of the camera image. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/hardware/Camera.CameraInfo#CameraInfo()() ` |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### CAMERA_FACING_BACK

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

```
public static final int CAMERA_FACING_BACK
```

The facing of the camera is opposite to that of the screen.

<br />

Constant Value: 0 (0x00000000)

### CAMERA_FACING_FRONT

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

```
public static final int CAMERA_FACING_FRONT
```

The facing of the camera is the same as that of the screen.

<br />

Constant Value: 1 (0x00000001)

## Fields

### canDisableShutterSound

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

```
public boolean canDisableShutterSound
```

<br />

Whether the shutter sound can be disabled.

On some devices, the camera shutter sound cannot be turned off through `https://developer.android.com/reference/android/hardware/Camera#enableShutterSound(boolean)`. This field can be used to determine whether a call to disable the shutter sound will succeed.

If this field is set to true, then a call of `enableShutterSound(false)` will be successful. If set to false, then that call will fail, and the shutter sound will be played when `https://developer.android.com/reference/android/hardware/Camera#takePicture(android.hardware.Camera.ShutterCallback,%20android.hardware.Camera.PictureCallback,%20android.hardware.Camera.PictureCallback)` is called.

<br />

<br />

### facing

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

```
public int facing
```

The direction that the camera faces. It should be CAMERA_FACING_BACK or CAMERA_FACING_FRONT.

<br />

### orientation

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

```
public int orientation
```

<br />

The orientation of the camera image. The value is the angle that the camera image needs to be rotated clockwise so it shows correctly on the display in its natural orientation. It should be 0, 90, 180, or 270.

For example, suppose a device has a naturally tall screen. The back-facing camera sensor is mounted in landscape. You are looking at the screen. If the top side of the camera sensor is aligned with the right edge of the screen in natural orientation, the value should be 90. If the top side of a front-facing camera sensor is aligned with the right of the screen, the value should be 270.

<br />

<br />

**See also:**

- `https://developer.android.com/reference/android/hardware/Camera#setDisplayOrientation(int)`
- `https://developer.android.com/reference/android/hardware/Camera.Parameters#setRotation(int)`
- `https://developer.android.com/reference/android/hardware/Camera.Parameters#setPreviewSize(int,%20int)`
- `https://developer.android.com/reference/android/hardware/Camera.Parameters#setPictureSize(int,%20int)`
- `https://developer.android.com/reference/android/hardware/Camera.Parameters#setJpegThumbnailSize(int,%20int)`

## Public constructors

### CameraInfo

```
public CameraInfo ()
```

<br />

<br />