PreviewScope


@CameraXDsl
public final class PreviewScope implements InteropConfigurableScope


Scope class for Preview configuration DSL.

Summary

Public methods

final @NonNull DynamicRange

Sets or gets the dynamic range for this use case.

final int

Sets or gets the mirror mode for this use case.

final @NonNull ResolutionSelector

Sets or gets the resolution selector for this use case.

final @NonNull Range<@NonNull Integer>

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

final @NonNull String

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

final int

Sets or gets the target rotation for this use case.

final boolean

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

final void

Sets or gets the dynamic range for this use case.

final void
setMirrorMode(int value)

Sets or gets the mirror mode for this use case.

final void

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

final void

Sets or gets the resolution selector for this use case.

final void

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

final void

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

final void
setTargetRotation(int value)

Sets or gets the target rotation for this use case.

Public methods

getDynamicRange

Added in 1.7.0-rc01
public final @NonNull DynamicRange getDynamicRange()

Sets or gets the dynamic range for this use case.

See also
setDynamicRange

getMirrorMode

Added in 1.7.0-rc01
public final int getMirrorMode()

Sets or gets the mirror mode for this use case.

See also
setMirrorMode

getResolutionSelector

Added in 1.7.0-rc01
public final @NonNull ResolutionSelector getResolutionSelector()

Sets or gets the resolution selector for this use case.

getTargetFrameRate

Added in 1.7.0-rc01
public final @NonNull Range<@NonNull Integer> getTargetFrameRate()

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

getTargetName

Added in 1.7.0-rc01
public final @NonNull String getTargetName()

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

See also
setTargetName

getTargetRotation

Added in 1.7.0-rc01
public final int getTargetRotation()

Sets or gets the target rotation for this use case.

isPreviewStabilizationEnabled

Added in 1.7.0-rc01
public final boolean isPreviewStabilizationEnabled()

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

setDynamicRange

Added in 1.7.0-rc01
public final void setDynamicRange(@NonNull DynamicRange value)

Sets or gets the dynamic range for this use case.

See also
setDynamicRange

setMirrorMode

Added in 1.7.0-rc01
public final void setMirrorMode(int value)

Sets or gets the mirror mode for this use case.

See also
setMirrorMode

setPreviewStabilizationEnabled

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

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

setResolutionSelector

Added in 1.7.0-rc01
public final void setResolutionSelector(@NonNull ResolutionSelector value)

Sets or gets the resolution selector for this use case.

setTargetFrameRate

Added in 1.7.0-rc01
public final void setTargetFrameRate(@NonNull Range<@NonNull Integer> value)

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

setTargetName

Added in 1.7.0-rc01
public final void setTargetName(@NonNull String value)

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

See also
setTargetName

setTargetRotation

Added in 1.7.0-rc01
public final void setTargetRotation(int value)

Sets or gets the target rotation for this use case.