public abstract class

SynchronizedCaptureSession.StateCallback

extends java.lang.Object

 java.lang.Object

↳androidx.camera.camera2.internal.SynchronizedCaptureSession.StateCallback

Overview

A callback object interface to adapting the updates from .

This method is similar to the . The main difference is users can receive the SynchronizedCaptureSession object from the callback.

Summary

Constructors
publicStateCallback()

Methods
public voidonClosed(SynchronizedCaptureSession session)

This onClosed callback is a wrap of the CameraCaptureSession.StateCallback.onClosed, it will be invoked when: (1) CameraCaptureSession.StateCallback.onClosed is called.

public voidonConfigureFailed(SynchronizedCaptureSession session)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public StateCallback()

Methods

public void onConfigureFailed(SynchronizedCaptureSession session)

public void onClosed(SynchronizedCaptureSession session)

This onClosed callback is a wrap of the CameraCaptureSession.StateCallback.onClosed, it will be invoked when: (1) CameraCaptureSession.StateCallback.onClosed is called. (2) The CameraDevice is disconnected. When the CameraDevice.StateCallback#onDisconnect is called, we will invoke this onClosed callback. Please see b/140955560. (3) When a new CameraCaptureSession is created, all the previous opened CameraCaptureSession can be treated as closed. Please see more detail in b/144817309.

Please note: The onClosed callback might not been called when the CameraDevice is closed before the CameraCaptureSession is closed.

Parameters:

session: the SynchronizedCaptureSession that is created by openCaptureSession