Class ShadowCamera.ShadowParameters

java.lang.Object
org.robolectric.shadows.ShadowCamera.ShadowParameters
Enclosing class:
ShadowCamera

@Implements(android.hardware.Camera.Parameters.class) public static class ShadowCamera.ShadowParameters extends Object
Shadows the Android Camera.Parameters class.
  • Constructor Details

    • ShadowParameters

      public ShadowParameters()
  • Method Details

    • initSupportedPreviewSizes

      public void initSupportedPreviewSizes()
    • setSupportedFocusModes

      public void setSupportedFocusModes(String... focusModes)
    • setSupportedFlashModes

      public void setSupportedFlashModes(String... flashModes)
    • setMaxNumFocusAreas

      public void setMaxNumFocusAreas(int maxNumFocusAreas)
      Allows test cases to set the maximum number of focus areas. See Camera.Parameters.getMaxNumFocusAreas().
    • addSupportedPreviewSize

      public void addSupportedPreviewSize(int width, int height)
    • setMaxNumMeteringAreas

      public void setMaxNumMeteringAreas(int maxNumMeteringAreas)
      Allows test cases to set the maximum number of metering areas. See Camera.Parameters.getMaxNumMeteringAreas().
    • getPreviewWidth

      public int getPreviewWidth()
    • getPreviewHeight

      public int getPreviewHeight()
    • getPictureWidth

      public int getPictureWidth()
    • getPictureHeight

      public int getPictureHeight()
    • getRotation

      public int getRotation()