Camera Switch Control

Defined in library scandit_datacapture_core_ui

CameraSwitchControl
class CameraSwitchControl : Control

Added in version 8.7.0

Control that allows to switch between a primary and a secondary camera.

You can add this control to a view by calling DataCaptureView.addControl().

Adding a camera switch control to a view sets the primary camera as the view’s context frame source.

CameraSwitchControl(primaryCamera, secondaryCamera)
CameraSwitchControl(Camera primaryCamera,
        Camera secondaryCamera)

Added in version 8.7.0

Initializes a CameraSwitchControl with two cameras.

primaryCamera
final Camera primaryCamera

Added in version 8.7.0

The primary camera. Calling DataCaptureView.addControl() sets this camera as the view’s context frame source.

secondaryCamera
final Camera secondaryCamera

Added in version 8.7.0

The secondary camera.

accessibilityLabelWhenWorldFacing
String? accessibilityLabelWhenWorldFacing

Added in version 8.7.0

Accessibility label text used for the button when the world facing camera is selected.

accessibilityLabelWhenUserFacing
String? accessibilityLabelWhenUserFacing

Added in version 8.7.0

Accessibility label text used for the button when the user facing camera is selected.