MBCameraOptions

data class MBCameraOptions(val targetResolution: MBTargetResolution = MBTargetResolution.HD_720, val previewScaleType: MBPreviewScaleType = MBPreviewScaleType.FIT_CENTER, val cameraPosition: MBCameraPosition = MBCameraPosition.FRONT, val orientation: MBOrientation = MBOrientation.PORTRAIT)

Data class representing options for configuring the camera.

Constructors

Link copied to clipboard
constructor(targetResolution: MBTargetResolution = MBTargetResolution.HD_720, previewScaleType: MBPreviewScaleType = MBPreviewScaleType.FIT_CENTER, cameraPosition: MBCameraPosition = MBCameraPosition.FRONT, orientation: MBOrientation = MBOrientation.PORTRAIT)

Properties

Link copied to clipboard

The position of the camera (front or back). Default is front-facing camera.

Link copied to clipboard
Link copied to clipboard

The scaling type for the camera preview. Default is FIT_CENTER.

Link copied to clipboard

The target resolution for the camera. Default is HD resolution (720p).