public class

ImageCaptureExtender.ImageCaptureAdapter

extends CameraEventCallback

implements CaptureBundle

 java.lang.Object

androidx.camera.camera2.impl.CameraEventCallback

↳androidx.camera.extensions.ImageCaptureExtender.ImageCaptureAdapter

Overview

An implementation to adapt the OEM provided implementation to core.

Summary

Constructors
publicImageCaptureAdapter(ImageCaptureExtenderImpl impl, Context context)

Methods
public java.util.List<CaptureStage>getCaptureStages()

public voidonAttach(CameraInfo cameraInfo)

public voidonDetach()

public CaptureConfigonDisableSession()

This will be invoked once before the CameraCaptureSession is closed.

public CaptureConfigonEnableSession()

This will be invoked once after a CameraCaptureSession is created.

public CaptureConfigonPresetSession()

This will be invoked before creating a CameraCaptureSession.

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

Constructors

public ImageCaptureAdapter(ImageCaptureExtenderImpl impl, Context context)

Methods

public void onAttach(CameraInfo cameraInfo)

public void onDetach()

public CaptureConfig onPresetSession()

This will be invoked before creating a CameraCaptureSession. The returned parameter in CaptureConfig will be passed to the camera device as part of the capture session initialization via setSessionParameters(). The valid parameter is a subset of the available capture request parameters.

Returns:

CaptureConfig The request information to customize the session.

public CaptureConfig onEnableSession()

This will be invoked once after a CameraCaptureSession is created. The returned parameter in CaptureConfig will be used to generate a single request to the current configured camera device. The generated request would be submitted to camera before process other single request.

Returns:

CaptureConfig The request information to customize the session.

public CaptureConfig onDisableSession()

This will be invoked once before the CameraCaptureSession is closed. The returned parameter in CaptureConfig will be used to generate a single request to the current configured camera device. The generated request would be submitted to camera before the capture session was closed.

Returns:

CaptureConfig The request information to customize the session.

public java.util.List<CaptureStage> getCaptureStages()