Class ShadowCaptureResult

java.lang.Object
org.robolectric.shadows.ShadowCaptureResult
Direct Known Subclasses:
ShadowTotalCaptureResult

@Implements(android.hardware.camera2.CaptureResult.class) public class ShadowCaptureResult extends Object
Shadow of CaptureResult.
  • Constructor Details

    • ShadowCaptureResult

      public ShadowCaptureResult()
  • Method Details

    • newCaptureResult

      public static CaptureResult newCaptureResult()
      Convenience method which returns a new instance of CaptureResult.
    • get

      @Implementation @Nullable protected <T> T get(CaptureResult.Key<T> key)
      Obtain a property of the CaptureResult.
    • set

      public <T> void set(CaptureResult.Key<T> key, T value)
      Sets the value for a given key.
      Throws:
      IllegalArgumentException - if there's an existing value for the key.