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 Object
Shadow of
CaptureResult.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> Tget(CaptureResult.Key<T> key) Obtain a property of the CaptureResult.static CaptureResultConvenience method which returns a new instance ofCaptureResult.<T> voidset(CaptureResult.Key<T> key, T value) Sets the value for a given key.
-
Constructor Details
-
ShadowCaptureResult
public ShadowCaptureResult()
-
-
Method Details
-
newCaptureResult
Convenience method which returns a new instance ofCaptureResult. -
get
Obtain a property of the CaptureResult. -
set
Sets the value for a given key.- Throws:
IllegalArgumentException- if there's an existing value for the key.
-