class SessionConfigurationLegacy


A compat class to store the same minimal information as Camera2's android.hardware.camera2.params.SessionConfiguration.

This class allows querying on devices that do not support Camera2's android.hardware.camera2.CameraDevice.CameraDeviceSetup and need to query the camera capabilities before calling openCamera.

However, there are downsides to using the *Legacy classes.

  1. When *Legacy classes are used, only the non-Camera2 databases (if present) will be queried.
  2. The output of createCaptureRequest will often set defaults based on the Template passed to it. Without the capture request provided by the camera2 API, there is no reasonable way for this API to guarantee that the result returned is completely reliable.

With those downsides, the usage of the *Legacy classes is restricted to devices that do not support android.hardware.camera2.CameraDevice.CameraDeviceSetup. On devices that do not support android.hardware.camera2.CameraDevice.CameraDeviceSetup, it is strongly recommended that this class is used if and only if calling openCamera is not possible before the query.

Summary

Nested types

Simple builder class for SessionConfigurationLegacy.

Public functions

getOutputConfigurations

Added in 1.5.0-beta01
fun getOutputConfigurations(): (Mutable)List<OutputConfiguration!>
Returns
(Mutable)List<OutputConfiguration!>

the configured output configurations.

getSessionParameters

Added in 1.5.0-beta01
fun getSessionParameters(): SessionParametersLegacy
Returns
SessionParametersLegacy

the associated session parameters.