ICameraViewConfiguration

Base interface to control configuration parameters of the Camera inside the Classical component View

Inheritors

Properties

Link copied to clipboard

Delay that camera will took before snap on auto focus complete called from camera core in ms. For some devices this callback could call even before real auto focus completed, so we need to take some delay before snapping. Usually you can set 500ms. By default it is set to 20ms.

Functions

Link copied to clipboard
abstract fun lockMinFocusDistance(lock: Boolean)

Locks the min supported focus distance and disables continuous focus

Link copied to clipboard
abstract fun setAnalyzerFpsLimit(fps: Float)

Limit the frame rate of the camera analyzer. By default, the frame rate is set to the maximum possible value.

Link copied to clipboard
abstract fun setAutoFocusOnTouch(enabled: Boolean)

Whether touch-to-focus is enabled on camera preview. Enabled by default.

Link copied to clipboard
abstract fun setCameraModule(cameraModule: CameraModule)

Defines a camera module. By default is CameraModule.BACK.

Link copied to clipboard
abstract fun setCameraOrientationMode(cameraOrientationMode: CameraOrientationMode)

Orientation lock mode of the camera: PORTRAIT or LANDSCAPE. By default the camera orientation is not locked.

Link copied to clipboard
abstract fun setCameraPreviewMode(cameraPreviewMode: CameraPreviewMode)

Set the camera preview mode. By default - CameraPreviewMode.FILL_IN.

Link copied to clipboard
abstract fun setForceMaxSnappingQuality(enabled: Boolean)

Set whether camera should force maximum possible quality of snapped picture. As a result snapping speed could be significantly slower and result image could be bigger. By default set to false This parameter works only with ScanbotCameraXView enabled

Link copied to clipboard
abstract fun setForceMaxSnappingSize(enabled: Boolean)

Set whether camera should force maximum possible size of snapped picture or use maximum size that available with the same aspect ratio as preview by default set to false This parameter works only with ScanbotCameraXView enabled

Link copied to clipboard
abstract fun setPhysicalZoomRange(zoomRange: ZoomRange)

Set custom zoom range. Default value is ZoomRange(0.5f, 100f).

Link copied to clipboard
abstract fun setPhysicalZoomRatio(zoomRatio: Float)

Sets current zoom ratio ranging from 0.5f to 100f. Zoom Level 1f represents 1x zoom ratio. Default value is 1f.

Link copied to clipboard
abstract fun setShutterSound(enabled: Boolean)

Set camera shutter sound state. true if system sound should be played on the take picture event, false - otherwise. By default, the camera plays the system-defined camera shutter sound when takePicture() is called.