Package org.robolectric.shadows
Class ShadowCameraDeviceImpl
- java.lang.Object
-
- org.robolectric.shadows.ShadowCameraDeviceImpl
-
@Implements(value=android.hardware.camera2.impl.CameraDeviceImpl.class, minSdk=21, isInAndroidSdk=false) public class ShadowCameraDeviceImpl extends Object
Shadow class forCameraDeviceImpl
-
-
Constructor Summary
Constructors Constructor Description ShadowCameraDeviceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkIfCameraClosedOrInError()
protected void
close()
protected CaptureRequest.Builder
createCaptureRequest(int templateType)
protected void
createCaptureSession(SessionConfiguration config)
protected void
createCaptureSession(List<Surface> outputs, CameraCaptureSession.StateCallback callback, Handler handler)
-
-
-
Method Detail
-
createCaptureRequest
@Implementation protected CaptureRequest.Builder createCaptureRequest(int templateType)
-
createCaptureSession
@Implementation(minSdk=28) protected void createCaptureSession(List<Surface> outputs, CameraCaptureSession.StateCallback callback, Handler handler) throws CameraAccessException
- Throws:
CameraAccessException
-
createCaptureSession
@Implementation(minSdk=28) protected void createCaptureSession(SessionConfiguration config) throws CameraAccessException
- Throws:
CameraAccessException
-
close
@Implementation protected void close()
-
checkIfCameraClosedOrInError
@Implementation protected void checkIfCameraClosedOrInError()
-
-