PreviewScope


@CameraXDsl
class PreviewScope : InteropConfigurableScope


Scope class for Preview configuration DSL.

Summary

Public properties

DynamicRange

Sets the dynamic range for this use case.

Boolean

Sets whether preview stabilization is enabled for this use case.

Int

Sets the mirror mode for this use case.

ResolutionSelector

Sets the resolution selector for this use case.

Range<Int>

Sets the target frame rate range for this use case.

String

Sets the target name for this use case configuration.

Int

Sets the target rotation for this use case.

Public properties

dynamicRange

Added in 1.7.0-alpha03
Deprecated in 1.7.0-alpha03
var dynamicRange: DynamicRange

Sets the dynamic range for this use case.

See also
setDynamicRange

isPreviewStabilizationEnabled

Added in 1.7.0-alpha03
Deprecated in 1.7.0-alpha03
var isPreviewStabilizationEnabled: Boolean

Sets whether preview stabilization is enabled for this use case.

mirrorMode

Added in 1.7.0-alpha03
Deprecated in 1.7.0-alpha03
var mirrorMode: Int

Sets the mirror mode for this use case.

See also
setMirrorMode

resolutionSelector

Added in 1.7.0-alpha03
Deprecated in 1.7.0-alpha03
var resolutionSelector: ResolutionSelector

Sets the resolution selector for this use case.

targetFrameRate

Added in 1.7.0-alpha03
Deprecated in 1.7.0-alpha03
var targetFrameRate: Range<Int>

Sets the target frame rate range for this use case.

targetName

Added in 1.7.0-alpha03
Deprecated in 1.7.0-alpha03
var targetName: String

Sets the target name for this use case configuration.

See also
setTargetName

targetRotation

Added in 1.7.0-alpha03
Deprecated in 1.7.0-alpha03
var targetRotation: Int

Sets the target rotation for this use case.