Package org.robolectric.shadows
Class ShadowCameraDeviceImpl
java.lang.Object
org.robolectric.shadows.ShadowCameraDeviceImpl
@Implements(value=android.hardware.camera2.impl.CameraDeviceImpl.class,
isInAndroidSdk=false)
public class ShadowCameraDeviceImpl
extends Object
Shadow class for
CameraDeviceImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
__constructor__
(String cameraId, CameraDevice.StateCallback callback, Executor executor, CameraCharacteristics characteristics, CameraManager cameraManager, int appTargetSdkVersion, Context ctx, Object cameraDeviceSetup) protected void
protected void
close()
protected CaptureRequest.Builder
createCaptureRequest
(int templateType) protected void
protected void
createCaptureSession
(List<Surface> outputs, CameraCaptureSession.StateCallback callback, Handler handler)
-
Constructor Details
-
ShadowCameraDeviceImpl
public ShadowCameraDeviceImpl()
-
-
Method Details
-
__constructor__
@Implementation(minSdk=35) @InDevelopment protected void __constructor__(String cameraId, CameraDevice.StateCallback callback, Executor executor, CameraCharacteristics characteristics, CameraManager cameraManager, int appTargetSdkVersion, Context ctx, Object cameraDeviceSetup) -
createCaptureRequest
-
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
-
checkIfCameraClosedOrInError
-