public static interface CameraCaptureSession.CaptureCallback
A callback object for tracking the progress of a CameraCaptureRequest
submitted to the
camera device.
android.hardware.camera2.CameraCaptureSession.CaptureCallback
Modifier and Type | Method and Description |
---|---|
void |
onNewFrame(CameraCaptureSession session,
CameraCaptureRequest request,
CameraFrame cameraFrame)
This method is called when an image capture has fully completed and a newly captured
frame is available.
|
void onNewFrame(CameraCaptureSession session, CameraCaptureRequest request, CameraFrame cameraFrame)
session
- the session returned by Camera.createCaptureSession(org.firstinspires.ftc.robotcore.external.function.Continuation<? extends org.firstinspires.ftc.robotcore.external.hardware.camera.CameraCaptureSession.StateCallback>)
request
- the request that was given to the CameracameraFrame
- the newly available frameCameraCaptureSession.startCapture(org.firstinspires.ftc.robotcore.external.hardware.camera.CameraCaptureRequest, org.firstinspires.ftc.robotcore.external.hardware.camera.CameraCaptureSession.CaptureCallback, org.firstinspires.ftc.robotcore.external.function.Continuation<? extends org.firstinspires.ftc.robotcore.external.hardware.camera.CameraCaptureSession.StatusCallback>)