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