MultiPreviewConfig

data class MultiPreviewConfig(var width: Int = 0, var height: Int = 0, var horizontalFlip: Boolean = false, var verticalFlip: Boolean = false, var aspectRatioMode: AspectRatioMode = AspectRatioMode.Adjust, var isPortrait: Boolean = false, var viewPort: ViewPort? = null)

User-facing configuration for a multi-preview surface. All configuration fields are mutable to support dynamic updates.

Parameters

width

the width of the preview. 0 to use preview or encoder resolution

height

the height of the preview. 0 to use preview or encoder resolution

horizontalFlip

true to flip horizontally

verticalFlip

true to flip vertically

aspectRatioMode

aspect ratio mode for this surface

isPortrait

true for portrait orientation, false for landscape

viewPort

viewport for this surface. null for full screen

Constructors

Link copied to clipboard
constructor(width: Int = 0, height: Int = 0, horizontalFlip: Boolean = false, verticalFlip: Boolean = false, aspectRatioMode: AspectRatioMode = AspectRatioMode.Adjust, isPortrait: Boolean = false, viewPort: ViewPort? = null)

Properties

Link copied to clipboard
Link copied to clipboard
var height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var width: Int