@Implements(value=android.hardware.Camera.Parameters.class) public static class ShadowCamera.ShadowParameters extends java.lang.Object
Shadows the Android Camera.Parameters class.
| Constructor and Description | 
|---|
| ShadowParameters() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addSupportedPreviewSize(int width,
                       int height)Add custom preview sizes to supportedPreviewSizes. | 
| protected int | getExposureCompensation() | 
| protected float | getExposureCompensationStep() | 
| protected java.lang.String | getFocusMode() | 
| protected int | getMaxExposureCompensation() | 
| protected int | getMinExposureCompensation() | 
| int | getPictureHeight() | 
| protected android.hardware.Camera.Size | getPictureSize() | 
| int | getPictureWidth() | 
| protected int | getPreviewFormat() | 
| protected void | getPreviewFpsRange(int[] range) | 
| protected int | getPreviewFrameRate() | 
| int | getPreviewHeight() | 
| protected android.hardware.Camera.Size | getPreviewSize() | 
| int | getPreviewWidth() | 
| protected java.util.List<java.lang.String> | getSupportedFocusModes() | 
| protected java.util.List<java.lang.Integer> | getSupportedPictureFormats() | 
| protected java.util.List<android.hardware.Camera.Size> | getSupportedPictureSizes() | 
| protected java.util.List<java.lang.Integer> | getSupportedPreviewFormats() | 
| protected java.util.List<int[]> | getSupportedPreviewFpsRange() | 
| protected java.util.List<java.lang.Integer> | getSupportedPreviewFrameRates() | 
| protected java.util.List<android.hardware.Camera.Size> | getSupportedPreviewSizes() | 
| void | initSupportedPreviewSizes()Explicitly initialize custom preview sizes array, to switch from default values to individually added. | 
| protected void | setExposureCompensation(int compensation) | 
| protected void | setFocusMode(java.lang.String focusMode) | 
| protected void | setPictureSize(int width,
              int height) | 
| protected void | setPreviewFormat(int pixel_format) | 
| protected void | setPreviewFpsRange(int min,
                  int max) | 
| protected void | setPreviewFrameRate(int fps) | 
| protected void | setPreviewSize(int width,
              int height) | 
| protected void | setRecordingHint(boolean recordingHint) | 
| protected void | setRotation(int rotation) | 
| void | setSupportedFocusModes(java.lang.String... focusModes) | 
public void initSupportedPreviewSizes()
Explicitly initialize custom preview sizes array, to switch from default values to individually added.
public void addSupportedPreviewSize(int width,
                                    int height)
Add custom preview sizes to supportedPreviewSizes.
@Implementation protected android.hardware.Camera.Size getPictureSize()
@Implementation protected int getPreviewFormat()
@Implementation protected void getPreviewFpsRange(int[] range)
@Implementation protected int getPreviewFrameRate()
@Implementation protected android.hardware.Camera.Size getPreviewSize()
@Implementation protected java.util.List<android.hardware.Camera.Size> getSupportedPictureSizes()
@Implementation protected java.util.List<java.lang.Integer> getSupportedPictureFormats()
@Implementation protected java.util.List<java.lang.Integer> getSupportedPreviewFormats()
@Implementation protected java.util.List<int[]> getSupportedPreviewFpsRange()
@Implementation protected java.util.List<java.lang.Integer> getSupportedPreviewFrameRates()
@Implementation protected java.util.List<android.hardware.Camera.Size> getSupportedPreviewSizes()
public void setSupportedFocusModes(java.lang.String... focusModes)
@Implementation protected java.util.List<java.lang.String> getSupportedFocusModes()
@Implementation protected java.lang.String getFocusMode()
@Implementation protected void setFocusMode(java.lang.String focusMode)
@Implementation protected void setPictureSize(int width, int height)
@Implementation protected void setPreviewFormat(int pixel_format)
@Implementation protected void setPreviewFpsRange(int min, int max)
@Implementation protected void setPreviewFrameRate(int fps)
@Implementation protected void setPreviewSize(int width, int height)
@Implementation protected void setRecordingHint(boolean recordingHint)
@Implementation protected void setRotation(int rotation)
@Implementation protected int getMinExposureCompensation()
@Implementation protected int getMaxExposureCompensation()
@Implementation protected float getExposureCompensationStep()
@Implementation protected int getExposureCompensation()
@Implementation protected void setExposureCompensation(int compensation)
public int getPreviewWidth()
public int getPreviewHeight()
public int getPictureWidth()
public int getPictureHeight()