CamFormat

actual class CamFormat(configs: CameraFormatConfig)
expect class CamFormat(configs: CameraFormatConfig)

A class representing the camera format configuration.

This class encapsulates a list of CameraFormatConfig that determines the resolution and quality settings for the camera stream. The configurations are applied based on priority order: the first configuration is attempted, followed by subsequent ones as fallbacks.

You can use predefined formats via the companion object extensions:

Or create a custom format by providing specific CameraFormatConfigs to the constructor.

See also

actual class CamFormat(configs: CameraFormatConfig)

Constructors

Link copied to clipboard
actual constructor()
actual constructor(vararg configs: CameraFormatConfig)
expect constructor()
expect constructor(vararg configs: CameraFormatConfig)
actual constructor()
actual constructor(vararg configs: CameraFormatConfig)

Types

Link copied to clipboard
actual object Companion
expect object Companion
actual object Companion

Properties

Link copied to clipboard

Functions

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