Package org.robolectric.shadows
Class ShadowCameraCharacteristics
- java.lang.Object
-
- org.robolectric.shadows.ShadowCameraCharacteristics
-
@Implements(value=android.hardware.camera2.CameraCharacteristics.class, minSdk=21) public class ShadowCameraCharacteristics extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowCameraCharacteristics()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> T
get(CameraCharacteristics.Key<T> key)
static CameraCharacteristics
newCameraCharacteristics()
Convenience method which returns a new instance ofCameraCharacteristics
.<T> void
set(CameraCharacteristics.Key<T> key, Object value)
Sets the value for a given key.
-
-
-
Method Detail
-
newCameraCharacteristics
public static CameraCharacteristics newCameraCharacteristics()
Convenience method which returns a new instance ofCameraCharacteristics
.
-
get
@Implementation protected <T> T get(CameraCharacteristics.Key<T> key)
-
set
public <T> void set(CameraCharacteristics.Key<T> key, Object value)
Sets the value for a given key.- Throws:
IllegalArgumentException
- if there's an existing value for the key.
-
-