public class CameraOptions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
float |
getExposureCorrectionMaxValue()
The maximum value of positive exposure correction, in EV stops.
|
float |
getExposureCorrectionMinValue()
The minimum value of negative exposure correction, in EV stops.
|
<T extends Control> |
getSupportedControls(java.lang.Class<T> controlClass) |
java.util.Set<Facing> |
getSupportedFacing()
Set of supported facing values.
|
java.util.Set<Flash> |
getSupportedFlash()
Set of supported flash values.
|
java.util.Set<Hdr> |
getSupportedHdr()
Set of supported hdr values.
|
java.util.Set<AspectRatio> |
getSupportedPictureAspectRatios()
Set of supported picture aspect ratios for the currently opened camera.
|
java.util.Set<Size> |
getSupportedPictureSizes()
Set of supported picture sizes for the currently opened camera.
|
java.util.Set<WhiteBalance> |
getSupportedWhiteBalance()
Set of supported white balance values.
|
boolean |
isAutoFocusSupported()
Whether auto focus is supported.
|
boolean |
isExposureCorrectionSupported()
Whether exposure correction is supported.
|
boolean |
isVideoSnapshotSupported()
Whether video snapshots are supported.
|
boolean |
isZoomSupported()
Whether zoom is supported.
|
boolean |
supports(Control control)
Shorthand for getSupported*().contains(value).
|
boolean |
supports(GestureAction action)
Shorthand for other methods in this class,
e.g.
|
public boolean supports(Control control)
control - value to checkpublic boolean supports(GestureAction action)
action - value to be checkedpublic <T extends Control> java.util.Collection<T> getSupportedControls(@NonNull java.lang.Class<T> controlClass)
@NonNull public java.util.Set<Size> getSupportedPictureSizes()
@NonNull public java.util.Set<AspectRatio> getSupportedPictureAspectRatios()
@NonNull public java.util.Set<Facing> getSupportedFacing()
Facing.BACK,
Facing.FRONT@NonNull public java.util.Set<Flash> getSupportedFlash()
Flash.AUTO,
Flash.OFF,
Flash.ON,
Flash.TORCH@NonNull public java.util.Set<WhiteBalance> getSupportedWhiteBalance()
WhiteBalance.AUTO,
WhiteBalance.INCANDESCENT,
WhiteBalance.FLUORESCENT,
WhiteBalance.DAYLIGHT,
WhiteBalance.CLOUDY@NonNull public java.util.Set<Hdr> getSupportedHdr()
public boolean isZoomSupported()
CameraView.setZoom(float) will have no effect.public boolean isVideoSnapshotSupported()
public boolean isAutoFocusSupported()
GestureAction.FOCUS or GestureAction.FOCUS_WITH_MARKER
and focus will be changed on tap.public boolean isExposureCorrectionSupported()
CameraView.setExposureCorrection(float) has no effect.getExposureCorrectionMinValue(),
getExposureCorrectionMaxValue()public float getExposureCorrectionMinValue()
public float getExposureCorrectionMaxValue()