CameraDeviceSetupCompat


interface CameraDeviceSetupCompat


Interface for checking if a SessionConfiguration is supported by the device.

This interface is a compatible version of the CameraDevice.CameraDeviceSetup class.

Implementations of this interface must be able to check if a SessionConfiguration is supported. They will check both the output streams and the session parameters, then return whether the combination works for the given camera. For example, a camera device may support HDR and 60FPS frame rate, but not both at the same time.

Summary

Public functions

isSessionConfigurationSupported

Added in 1.4.0
fun isSessionConfigurationSupported(sessionConfig: SessionConfiguration): CameraDeviceSetupCompat.SupportQueryResult

Checks if the SessionConfiguration is supported.

Parameters
sessionConfig: SessionConfiguration

The SessionConfiguration to check.

Throws
android.hardware.camera2.CameraAccessException

if the camera device is no longer connected or has encountered a fatal error.