Package org.robolectric.shadows
Class ShadowCaptureResult
- java.lang.Object
-
- org.robolectric.shadows.ShadowCaptureResult
-
- Direct Known Subclasses:
ShadowTotalCaptureResult
@Implements(value=android.hardware.camera2.CaptureResult.class, minSdk=21) public class ShadowCaptureResult extends java.lang.ObjectShadow ofCaptureResult.
-
-
Constructor Summary
Constructors Constructor Description ShadowCaptureResult()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> Tget(android.hardware.camera2.CaptureResult.Key<T> key)Obtain a property of the CaptureResult.static android.hardware.camera2.CaptureResultnewCaptureResult()Convenience method which returns a new instance ofCaptureResult.<T> voidset(android.hardware.camera2.CaptureResult.Key<T> key, T value)Sets the value for a given key.
-
-
-
Method Detail
-
newCaptureResult
public static android.hardware.camera2.CaptureResult newCaptureResult()
Convenience method which returns a new instance ofCaptureResult.
-
get
@Implementation protected <T> T get(android.hardware.camera2.CaptureResult.Key<T> key)
Obtain a property of the CaptureResult.
-
set
public <T> void set(android.hardware.camera2.CaptureResult.Key<T> key, T value)Sets the value for a given key.- Throws:
java.lang.IllegalArgumentException- if there's an existing value for the key.
-
-