ExtensionSessionConfigScope


@CameraXDsl
public final class ExtensionSessionConfigScope


Scope class for ExtensionSessionConfig configuration DSL.

Summary

Public methods

final @NonNull List<@NonNull CameraEffect>

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

final @NonNull List<@NonNull UseCase>

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

final @Nullable ViewPort

The ViewPort for the session.

final boolean

Whether to use auto rotation.

final void
setAutoRotationEnabled(boolean value)

Whether to use auto rotation.

final void

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

final void

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

final void

The ViewPort for the session.

Public methods

getEffects

Added in 1.7.0-rc01
public final @NonNull List<@NonNull CameraEffect> getEffects()

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

getUseCases

Added in 1.7.0-rc01
public final @NonNull List<@NonNull UseCase> getUseCases()

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

getViewPort

Added in 1.7.0-rc01
public final @Nullable ViewPort getViewPort()

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

isAutoRotationEnabled

Added in 1.7.0-rc01
public final boolean isAutoRotationEnabled()

Whether to use auto rotation.

setAutoRotationEnabled

Added in 1.7.0-rc01
public final void setAutoRotationEnabled(boolean value)

Whether to use auto rotation.

setEffects

public final void setEffects(@NonNull List<@NonNull CameraEffect> value)

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

setUseCases

public final void setUseCases(@NonNull List<@NonNull UseCase> value)

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

setViewPort

Added in 1.7.0-rc01
public final void setViewPort(ViewPort value)

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