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