@Implements(value=android.hardware.camera2.impl.CameraDeviceImpl.class, minSdk=21, isInAndroidSdk=false) public class ShadowCameraDeviceImpl extends Object
CameraDeviceImpl
Constructor | Description |
---|---|
ShadowCameraDeviceImpl() |
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) |
@Implementation(maxSdk=29) protected CaptureRequest.Builder createCaptureRequest(int templateType)
@Implementation(minSdk=28) protected void createCaptureSession(List<Surface> outputs, CameraCaptureSession.StateCallback callback, Handler handler) throws CameraAccessException
CameraAccessException
@Implementation(minSdk=28) protected void createCaptureSession(SessionConfiguration config) throws CameraAccessException
CameraAccessException
@Implementation protected void close()
@Implementation protected void checkIfCameraClosedOrInError()