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
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
get
(CaptureResult.Key<T> key) Obtain a property of the CaptureResult.static CaptureResult
Convenience method which returns a new instance ofCaptureResult
.<T> void
set
(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.
-