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