public
static
class
Camera.CameraInfo
extends Object
This class was deprecated
in API level 21.
We recommend using the new android.hardware.camera2 API for new
applications.
Information about a camera
Summary
Constants | |
|---|---|
int |
CAMERA_FACING_BACK
The facing of the camera is opposite to that of the screen. |
int |
CAMERA_FACING_FRONT
The facing of the camera is the same as that of the screen. |
Fields | |
|---|---|
public
boolean |
canDisableShutterSound
Whether the shutter sound can be disabled. |
public
int |
facing
The direction that the camera faces. |
public
int |
orientation
The orientation of the camera image. |
Public constructors | |
|---|---|
CameraInfo()
|
|
Inherited methods | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
| |||||||||||||||||||||||
Constants
CAMERA_FACING_BACK
public static final int CAMERA_FACING_BACK
The facing of the camera is opposite to that of the screen.
Constant Value: 0 (0x00000000)
CAMERA_FACING_FRONT
public static final int CAMERA_FACING_FRONT
The facing of the camera is the same as that of the screen.
Constant Value: 1 (0x00000001)
Fields
canDisableShutterSound
public boolean canDisableShutterSound
Whether the shutter sound can be disabled.
On some devices, the camera shutter sound cannot be turned off
through enableShutterSound. 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 takePicture is called.
facing
public int facing
The direction that the camera faces. It should be CAMERA_FACING_BACK or CAMERA_FACING_FRONT.
Public constructors
CameraInfo
public CameraInfo ()