Camera Switch Control

Defined in package com.scandit.datacapture.core.ui

CameraSwitchControl
class CameraSwitchControl : Control

Added in version 8.6.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.

primaryCamera
val primaryCamera: Camera

Added in version 8.6.0

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

secondaryCamera
val secondaryCamera: Camera

Added in version 8.6.0

The secondary camera.

primaryCameraImage
var primaryCameraImage: InputImage?

Added in version 8.6.0

The button image displayed when the primary camera is selected.

primaryCameraPressedImage
var primaryCameraPressedImage: InputImage?

Added in version 8.6.0

The button image displayed when the primary camera is selected and pressed.

secondaryCameraImage
var secondaryCameraImage: InputImage?

Added in version 8.6.0

The button image displayed when the secondary camera is selected.

secondaryCameraPressedImage
var secondaryCameraPressedImage: InputImage?

Added in version 8.6.0

The button image displayed when the secondary camera is selected and pressed.

accessibilityLabelWhenWorldFacing
var accessibilityLabelWhenWorldFacing: String?

Added in version 8.6.0

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

accessibilityHintWhenWorldFacing
var accessibilityHintWhenWorldFacing: String?

Added in version 8.6.0

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

accessibilityLabelWhenUserFacing
var accessibilityLabelWhenUserFacing: String?

Added in version 8.6.0

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

accessibilityHintWhenUserFacing
var accessibilityHintWhenUserFacing: String?

Added in version 8.6.0

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

defaultPrimaryCameraImage
val defaultPrimaryCameraImage: InputImage

Added in version 8.6.0

The default button image used by the control for the primary camera. Can be used to reset to the original image.

defaultPrimaryCameraPressedImage
val defaultPrimaryCameraPressedImage: InputImage

Added in version 8.6.0

The default button image used by the control for the primary camera while being pressed. Can be used to reset to the original image.

defaultSecondaryCameraImage
val defaultSecondaryCameraImage: InputImage

Added in version 8.6.0

The default button image used by the control for the secondary camera. Can be used to reset to the original image.

defaultSecondaryCameraPressedImage
val defaultSecondaryCameraPressedImage: InputImage

Added in version 8.6.0

The default button image used by the control for the secondary camera while being pressed. Can be used to reset to the original image.