ScanbotCameraContainerView

Wrapper around ScanbotCameraView and ScanbotCameraXView, which allows to control which of them should be used.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet)

Properties

Link copied to clipboard
open override var delayAfterFocusCompleteMs: Long

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.

Link copied to clipboard
open override var lifecycleOwner: <Error class: unknown class>?

Sets lifecycle owner for camera view. N/A for ScanbotCameraView implementation. Setting null means view will attempt to resolve lifecycle on its own.

Link copied to clipboard

TODO: desperately needs documentation!!!

Link copied to clipboard
open override var supportedZoomRange: ZoomRange

TODO: desperately needs documentation!!!

Functions

Link copied to clipboard
open override fun <T : FrameHandler> getAttachedFrameHandler(clazz: Class<T>): T?

Obtain FrameHandler instance of type clazz, that is attached to the view (if any).

Link copied to clipboard
open override fun isSnapAnimationEnabled(enabled: Boolean)

Set whether camera should use snapping animation. By default set to true This parameter works only with ScanbotCameraXView enabled

Link copied to clipboard
open override 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
open override fun setCameraOpenCallback(cameraOpenCallback: CameraOpenCallback)

Callback which will be invoked when camera will be opened

Link copied to clipboard
open override fun setPhysicalZoom(zoomRatio: Float)

Allows to set camera physical zoom value, if the value out of range of real camera min and max values it chooses min or max value. Example: camera physical zoom range 1f..5f if we set 6f it will set 5f. Default value is 1f.