-
public abstract class CameraOptionsOptions telling you what is available and what is not.
-
-
Field Summary
Fields Modifier and Type Field Description protected floatexposureCorrectionMinValueprotected floatexposureCorrectionMaxValueprotected floatpreviewFrameRateMinValueprotected floatpreviewFrameRateMaxValue
-
Method Summary
Modifier and Type Method Description final floatgetExposureCorrectionMinValue()The minimum value of negative exposure correction, in EV stops.This is presumably negative or 0 if not supported. final floatgetExposureCorrectionMaxValue()The maximum value of positive exposure correction, in EV stops.This is presumably positive or 0 if not supported. final floatgetPreviewFrameRateMinValue()The minimum value for the preview frame rate, in frames per second (FPS). final floatgetPreviewFrameRateMaxValue()The maximum value for the preview frame rate, in frames per second (FPS). final booleansupports(@NonNull() Control control)Shorthand for getSupported*().contains(value). final booleansupports(@NonNull() GestureAction action)Shorthand for other methods in this class,e.g. final <T extends Control> Collection<T>getSupportedControls(@NonNull() Class<T> controlClass)final Collection<AspectRatio>getSupportedPictureAspectRatios()Set of supported picture aspect ratios for the currently opened camera. final Collection<AspectRatio>getSupportedVideoAspectRatios()Set of supported picture aspect ratios for the currently opened camera. final booleanisZoomSupported()Whether zoom is supported. final booleanisAutoFocusSupported()Whether touch metering (metering with respect to a specific region of the screen) issupported. final booleanisExposureCorrectionSupported()Whether exposure correction is supported. -
-
Method Detail
-
getExposureCorrectionMinValue
final float getExposureCorrectionMinValue()
The minimum value of negative exposure correction, in EV stops.This is presumably negative or 0 if not supported.
-
getExposureCorrectionMaxValue
final float getExposureCorrectionMaxValue()
The maximum value of positive exposure correction, in EV stops.This is presumably positive or 0 if not supported.
-
getPreviewFrameRateMinValue
final float getPreviewFrameRateMinValue()
The minimum value for the preview frame rate, in frames per second (FPS).
-
getPreviewFrameRateMaxValue
final float getPreviewFrameRateMaxValue()
The maximum value for the preview frame rate, in frames per second (FPS).
-
supports
final boolean supports(@NonNull() Control control)
Shorthand for getSupported*().contains(value).
- Parameters:
control- value to check
-
supports
final boolean supports(@NonNull() GestureAction action)
Shorthand for other methods in this class,e.g. supports(GestureAction.ZOOM) == isZoomSupported().
- Parameters:
action- value to be checked
-
getSupportedControls
@NonNull() final <T extends Control> Collection<T> getSupportedControls(@NonNull() Class<T> controlClass)
-
getSupportedPictureAspectRatios
@NonNull() final Collection<AspectRatio> getSupportedPictureAspectRatios()
Set of supported picture aspect ratios for the currently opened camera.
-
getSupportedVideoAspectRatios
@NonNull() final Collection<AspectRatio> getSupportedVideoAspectRatios()
Set of supported picture aspect ratios for the currently opened camera.
-
isZoomSupported
final boolean isZoomSupported()
Whether zoom is supported. If this is false, pinch-to-zoomwill not work and setZoom will have no effect.
-
isAutoFocusSupported
final boolean isAutoFocusSupported()
Whether touch metering (metering with respect to a specific region of the screen) issupported. If it is, you can map gestures to AUTO_FOCUS and metering will change on tap.
-
isExposureCorrectionSupported
final boolean isExposureCorrectionSupported()
Whether exposure correction is supported. If this is false, calling setExposureCorrection has no effect.
-
-
-
-