public abstract static class CameraCaptureSession.StateCallbackDefault extends java.lang.Object implements CameraCaptureSession.StateCallback
Constructor and Description |
---|
StateCallbackDefault() |
Modifier and Type | Method and Description |
---|---|
void |
onClosed(CameraCaptureSession session)
This method is called when the session is closed.
|
void |
onConfigured(CameraCaptureSession session)
This method is called when the camera device has finished configuring itself, and the
session can start processing capture requests.
|
public void onConfigured(CameraCaptureSession session)
CameraCaptureSession.StateCallback
onConfigured
in interface CameraCaptureSession.StateCallback
session
- the session returned by Camera.createCaptureSession(org.firstinspires.ftc.robotcore.external.function.Continuation<? extends org.firstinspires.ftc.robotcore.external.hardware.camera.CameraCaptureSession.StateCallback>)
public void onClosed(CameraCaptureSession session)
CameraCaptureSession.StateCallback
A session is closed when a new session is created by the parent camera device, or when the parent camera device is closed (either by the user closing the device, or due to a camera device disconnection or fatal error).
This method will not be called unless CameraCaptureSession.StateCallback.onConfigured(org.firstinspires.ftc.robotcore.external.hardware.camera.CameraCaptureSession)
is called first.
onClosed
in interface CameraCaptureSession.StateCallback
session
- the session returned by Camera.createCaptureSession(org.firstinspires.ftc.robotcore.external.function.Continuation<? extends org.firstinspires.ftc.robotcore.external.hardware.camera.CameraCaptureSession.StateCallback>)