Camera Switch Control
Defined under the namespace 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.
- constructor(primaryCamera, secondaryCamera)
constructor(primaryCamera: Camera, secondaryCamera: Camera)
Added in version 8.6.0
Initializes a CameraSwitchControl with two cameras.
- primaryCamera
get primaryCamera(): Camera
Added in version 8.6.0
The primary camera. Calling DataCaptureView.addControl() sets this camera as the view’s context frame source.
- primaryCameraImage
primaryCameraImage: string | null
Added in version 8.6.0
The button image displayed when the primary camera is selected.
- primaryCameraPressedImage
primaryCameraPressedImage: string | null
Added in version 8.6.0
The button image displayed when the primary camera is selected and pressed.
- secondaryCameraImage
secondaryCameraImage: string | null
Added in version 8.6.0
The button image displayed when the secondary camera is selected.
- secondaryCameraPressedImage
secondaryCameraPressedImage: string | null
Added in version 8.6.0
The button image displayed when the secondary camera is selected and pressed.
- accessibilityLabelWhenWorldFacing
accessibilityLabelWhenWorldFacing: string | null
Added in version 8.6.0
Accessibility label text used for the button when the world facing camera is selected.
- accessibilityHintWhenWorldFacing
accessibilityHintWhenWorldFacing: string | null
Added in version 8.6.0
Accessibility hint text used for the button when the world facing camera is selected.
- accessibilityLabelWhenUserFacing
accessibilityLabelWhenUserFacing: string | null
Added in version 8.6.0
Accessibility label text used for the button when the user facing camera is selected.
- accessibilityHintWhenUserFacing
accessibilityHintWhenUserFacing: string | null
Added in version 8.6.0
Accessibility hint text used for the button when the user facing camera is selected.
- setPrimaryCameraImage(resource)
setPrimaryCameraImage(resource: string):
voidAdded in version 8.6.0
The button image resource displayed when the primary camera is selected.
- setPrimaryCameraPressedImage(resource)
setPrimaryCameraPressedImage(resource: string):
voidAdded in version 8.6.0
The button image resource displayed when the primary camera is selected and pressed.