Camera2Interop.Extender

public static final class Camera2Interop.Extender
extends Object

java.lang.Object
   ↳ androidx.camera.camera2.interop.Camera2Interop.Extender<T>


Extends a ExtendableBuilder to add Camera2 options.

Summary

Public constructors

Extender(ExtendableBuilder<T> baseBuilder)

Creates an Extender that can be used to add Camera2 options to another Builder.

Public methods

<ValueT> Extender<T> setCaptureRequestOption(Key<ValueT> key, ValueT value)

Sets a CaptureRequest.Key and Value on the configuration.

Extender<T> setDeviceStateCallback(CameraDevice.StateCallback stateCallback)

Sets a CameraDevice.StateCallback.

Extender<T> setSessionCaptureCallback(CameraCaptureSession.CaptureCallback captureCallback)

Sets a CameraCaptureSession.CaptureCallback.

Extender<T> setSessionStateCallback(CameraCaptureSession.StateCallback stateCallback)

Sets a CameraCaptureSession.StateCallback.

Inherited methods