CameraDeviceSetupCompat


public 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

Nested types

Result of a isSessionConfigurationSupported query.

Public methods

abstract @NonNull CameraDeviceSetupCompat.SupportQueryResult

Checks if the SessionConfiguration is supported.

Public methods

isSessionConfigurationSupported

Added in 1.4.0
abstract @NonNull CameraDeviceSetupCompat.SupportQueryResult isSessionConfigurationSupported(
    @NonNull SessionConfiguration sessionConfig
)

Checks if the SessionConfiguration is supported.

Parameters
@NonNull SessionConfiguration sessionConfig

The SessionConfiguration to check.

Throws
android.hardware.camera2.CameraAccessException

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