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
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
get
(CameraCharacteristics.Key<T> key) static CameraCharacteristics
Convenience method which returns a new instance ofCameraCharacteristics
.<T> void
set
(CameraCharacteristics.Key<T> key, Object value) Sets the value for a given key.
-
Constructor Details
-
ShadowCameraCharacteristics
public ShadowCameraCharacteristics()
-
-
Method Details
-
newCameraCharacteristics
Convenience method which returns a new instance ofCameraCharacteristics
. -
get
-
set
Sets the value for a given key.- Throws:
IllegalArgumentException
- if there's an existing value for the key.
-