PreviewScope


@CameraXDsl
class PreviewScope : InteropConfigurableScope


Scope class for Preview configuration DSL.

Summary

Public properties

DynamicRange

Sets or gets the dynamic range for this use case.

Boolean

Sets or gets whether preview stabilization is enabled for this use case.

Int

Sets or gets the mirror mode for this use case.

ResolutionSelector

Sets or gets the resolution selector for this use case.

Range<Int>

Sets or gets the target frame rate range for this use case.

String

Sets or gets the target name for this use case configuration.

Int

Sets or gets the target rotation for this use case.

Public properties

dynamicRange

Added in 1.7.0-rc01
var dynamicRange: DynamicRange

Sets or gets the dynamic range for this use case.

See also
setDynamicRange

isPreviewStabilizationEnabled

Added in 1.7.0-rc01
var isPreviewStabilizationEnabled: Boolean

Sets or gets whether preview stabilization is enabled for this use case.

mirrorMode

Added in 1.7.0-rc01
var mirrorMode: Int

Sets or gets the mirror mode for this use case.

See also
setMirrorMode

resolutionSelector

Added in 1.7.0-rc01
var resolutionSelector: ResolutionSelector

Sets or gets the resolution selector for this use case.

targetFrameRate

Added in 1.7.0-rc01
var targetFrameRate: Range<Int>

Sets or gets the target frame rate range for this use case.

targetName

Added in 1.7.0-rc01
var targetName: String

Sets or gets the target name for this use case configuration.

See also
setTargetName

targetRotation

Added in 1.7.0-rc01
var targetRotation: Int

Sets or gets the target rotation for this use case.