@Implements(value=android.hardware.camera2.CaptureResult.class, minSdk=21) public class ShadowCaptureResult extends Object
Shadow of CaptureResult.
| Constructor and Description |
|---|
ShadowCaptureResult() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
get(CaptureResult.Key<T> key)
Obtain a property of the CaptureResult.
|
static CaptureResult |
newCaptureResult()
Convenience method which returns a new instance of
CaptureResult. |
<T> void |
set(CaptureResult.Key<T> key,
T value)
Sets the value for a given key.
|
public static CaptureResult newCaptureResult()
Convenience method which returns a new instance of CaptureResult.
@Implementation protected <T> T get(CaptureResult.Key<T> key)
Obtain a property of the CaptureResult.
public <T> void set(CaptureResult.Key<T> key, T value)
Sets the value for a given key.
IllegalArgumentException - if there’s an existing value for the key.