ExtensionSessionConfigScope


@CameraXDsl
class ExtensionSessionConfigScope


Scope class for ExtensionSessionConfig configuration DSL.

Summary

Public properties

List<CameraEffect>

The list of CameraEffect to be applied on the camera session.

Boolean

Whether to use auto rotation.

List<UseCase>

The list of UseCase instances to be attached to the camera and receive camera data.

ViewPort?

The ViewPort for the session.

Public properties

effects

Added in 1.7.0-rc01
var effects: List<CameraEffect>

The list of CameraEffect to be applied on the camera session.

isAutoRotationEnabled

Added in 1.7.0-rc01
var isAutoRotationEnabled: Boolean

Whether to use auto rotation.

useCases

Added in 1.7.0-rc01
var useCases: List<UseCase>

The list of UseCase instances to be attached to the camera and receive camera data.

viewPort

Added in 1.7.0-rc01
var viewPort: ViewPort?

The ViewPort for the session.

Note: Setting this property to null is a no-op on the underlying ExtensionSessionConfig.Builder because ExtensionSessionConfig.Builder.setViewPort requires a non-null ViewPort.

See also
setViewPort