AspectRatioConfig

class AspectRatioConfig(val aspectRatio: Float) : CameraFormatConfig

Configuration for the Aspect Ratio of the Camera.

This class holds the desired aspect ratio (width / height) as a Float. It implements CameraFormatConfig to allow filtering camera streams based on their aspect ratio. Common aspect ratios like 4:3 (approx 1.33) or 16:9 (approx 1.77) are often used.

See also

Constructors

Link copied to clipboard
constructor(aspectRatio: Float)

Properties

Link copied to clipboard

The target aspect ratio value (e.g., 4.0/3.0 for 4:3).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String