public class Camera.CameraState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AntiBanding |
antiBandingMode |
protected CameraFacing |
cameraFacing |
protected boolean |
faceDetection |
protected FlashMode |
flashMode |
protected FocusMode |
focusMode |
protected int[] |
fpsRange |
protected Camera.Size |
pictureSize |
protected Camera.Size |
previewSize |
protected SceneMode |
sceneMode |
protected WhiteBalance |
whiteBalanceMode |
Constructor and Description |
---|
CameraState() |
Modifier and Type | Method and Description |
---|---|
int |
calculateCameraPreviewRotation() |
AntiBanding |
getAntiBandingMode()
Get current anti banding mode
|
CameraFacing |
getCameraFacing()
Get current camera facing
|
FlashMode |
getFlashMode()
Get current flash mode
|
FocusMode |
getFocusMode()
Get current focus mode
|
int[] |
getFrameRateRange()
Get preview frame rate range
|
SceneMode |
getSceneMode()
Get current scene mode
|
WhiteBalance |
getWhiteBalanceMode()
Get current white balance mode
|
boolean |
isFaceDetection()
Get face detection state
|
boolean |
isFrontCamera()
Get current camera facing
|
void |
setRotation(int v1,
int v2) |
protected final AntiBanding antiBandingMode
protected CameraFacing cameraFacing
protected final boolean faceDetection
protected FlashMode flashMode
@NonNull protected FocusMode focusMode
@Nullable protected int[] fpsRange
@Nullable protected Camera.Size pictureSize
@Nullable protected Camera.Size previewSize
protected SceneMode sceneMode
protected final WhiteBalance whiteBalanceMode
public int calculateCameraPreviewRotation()
@Nullable public AntiBanding getAntiBandingMode()
public CameraFacing getCameraFacing()
@Nullable public FlashMode getFlashMode()
@Nullable public FocusMode getFocusMode()
@Nullable public int[] getFrameRateRange()
@Nullable public SceneMode getSceneMode()
@Nullable public WhiteBalance getWhiteBalanceMode()
public boolean isFaceDetection()
public boolean isFrontCamera()
public void setRotation(int v1, int v2)