HighSpeedVideoSessionConfig.Builder


class HighSpeedVideoSessionConfig.Builder


Builder for HighSpeedVideoSessionConfig

Summary

Public constructors

Builder(videoCapture: VideoCapture<*>)

Public functions

HighSpeedVideoSessionConfig

Builds a HighSpeedVideoSessionConfig from the current configuration.

HighSpeedVideoSessionConfig.Builder
setAutoRotationEnabled(autoRotationEnabled: Boolean)

Sets whether to use auto rotation.

HighSpeedVideoSessionConfig.Builder
setFrameRateRange(frameRateRange: Range<Int>)

Set the frame rate range for the camera session.

HighSpeedVideoSessionConfig.Builder
setPreview(preview: Preview?)

Sets the Preview use case for displaying a preview during recording.

HighSpeedVideoSessionConfig.Builder

Sets whether to apply slow-motion effects to the recorded video.

Public properties

Range<Int>

The desired frame rate range for high-speed video recording.

Boolean

Whether to use auto rotation.

Boolean

Whether to apply slow-motion effects to the recorded video.

Preview?

The Preview use case for displaying a preview during recording.

Public constructors

Builder

Added in 1.5.0
Builder(videoCapture: VideoCapture<*>)
Parameters
videoCapture: VideoCapture<*>

The VideoCapture use case for video recording.

Public functions

build

Added in 1.5.0
fun build(): HighSpeedVideoSessionConfig

Builds a HighSpeedVideoSessionConfig from the current configuration.

setAutoRotationEnabled

Added in 1.7.0-alpha02
fun setAutoRotationEnabled(autoRotationEnabled: Boolean): HighSpeedVideoSessionConfig.Builder

Sets whether to use auto rotation.

When enabled, CameraX will monitor the device motion sensor and set the target rotation for VideoCapture.

setFrameRateRange

Added in 1.5.0
fun setFrameRateRange(frameRateRange: Range<Int>): HighSpeedVideoSessionConfig.Builder

Set the frame rate range for the camera session.

See HighSpeedVideoSessionConfig.frameRateRange for more details.

setPreview

Added in 1.5.0
fun setPreview(preview: Preview?): HighSpeedVideoSessionConfig.Builder

Sets the Preview use case for displaying a preview during recording.

setSlowMotionEnabled

Added in 1.5.0
fun setSlowMotionEnabled(enabled: Boolean): HighSpeedVideoSessionConfig.Builder

Sets whether to apply slow-motion effects to the recorded video.

Public properties

frameRateRange

Added in 1.7.0-alpha02
var frameRateRangeRange<Int>

The desired frame rate range for high-speed video recording.

isAutoRotationEnabled

Added in 1.7.0-alpha02
var isAutoRotationEnabledBoolean

Whether to use auto rotation.

isSlowMotionEnabled

Added in 1.7.0-alpha02
var isSlowMotionEnabledBoolean

Whether to apply slow-motion effects to the recorded video.

preview

Added in 1.7.0-alpha02
var previewPreview?

The Preview use case for displaying a preview during recording.