Added in API level 31

ExtensionSessionConfiguration

class ExtensionSessionConfiguration
kotlin.Any
   ↳ android.hardware.camera2.params.ExtensionSessionConfiguration

A class that aggregates all supported arguments for CameraExtensionSession initialization.

Summary

Public constructors

Create a new ExtensionSessionConfiguration

Public methods
Executor

Retrieve the Executor for the CameraExtensionSession instance.

Int

Retrieve the extension type.

MutableList<OutputConfiguration!>

Retrieve the OutputConfiguration list for the capture session.

OutputConfiguration?

Get the postview for still capture output configuration.

CameraExtensionSession.StateCallback

Retrieve the CameraCaptureSession.

Unit

Set the postview for still capture output configuration.

Public constructors

ExtensionSessionConfiguration

Added in API level 31
ExtensionSessionConfiguration(
    extension: Int,
    outputs: MutableList<OutputConfiguration!>,
    executor: Executor,
    listener: CameraExtensionSession.StateCallback)

Create a new ExtensionSessionConfiguration

Parameters
extension Int: to be used for processing Value is either 0 or a combination of android.hardware.camera2.CameraExtensionCharacteristics#EXTENSION_AUTOMATIC, android.hardware.camera2.CameraExtensionCharacteristics#EXTENSION_FACE_RETOUCH, android.hardware.camera2.CameraExtensionCharacteristics#EXTENSION_BOKEH, android.hardware.camera2.CameraExtensionCharacteristics#EXTENSION_HDR, android.hardware.camera2.CameraExtensionCharacteristics#EXTENSION_NIGHT, and android.hardware.camera2.CameraExtensionCharacteristics.EXTENSION_EYES_FREE_VIDEOGRAPHY
outputs MutableList<OutputConfiguration!>: a list of output configurations for the capture session This value cannot be null.
executor Executor: the executor which will be used for invoking the callbacks This value cannot be null.
listener CameraExtensionSession.StateCallback: callbacks to be invoked when the state of the CameraExtensionSession changes This value cannot be null.

Public methods

getExecutor

Added in API level 31
fun getExecutor(): Executor

Retrieve the Executor for the CameraExtensionSession instance.

Return
Executor The Executor on which the callback will be invoked. This value cannot be null.

getOutputConfigurations

Added in API level 31
fun getOutputConfigurations(): MutableList<OutputConfiguration!>

Retrieve the OutputConfiguration list for the capture session.

Return
MutableList<OutputConfiguration!> A list of output configurations for the capture session. This value cannot be null.

getPostviewOutputConfiguration

Added in API level 34
fun getPostviewOutputConfiguration(): OutputConfiguration?

Get the postview for still capture output configuration.

Return
OutputConfiguration? output configuration for postview This value may be null.

getStateCallback

Added in API level 31
fun getStateCallback(): CameraExtensionSession.StateCallback

Retrieve the CameraCaptureSession.StateCallback listener.

Return
CameraExtensionSession.StateCallback A state callback interface implementation. This value cannot be null.

setPostviewOutputConfiguration

Added in API level 34
fun setPostviewOutputConfiguration(postviewOutput: OutputConfiguration?): Unit

Set the postview for still capture output configuration.

Parameters
postviewOutput OutputConfiguration?: output configuration for postview This value may be null.