Camera Switch Control
Defined under the namespace Scandit.Datacapture.Core.Ui
- CameraSwitchControl
class CameraSwitchControl : Control
Added in version 6.13.0
Control that allows to switch between the available cameras.
You can add this control to a view by calling DataCaptureView.addControl().
Note
From 8.1 the initial value of the getter properties (idleImage, pressedImage) now returns an empty string as initial value instead of the old base64-encoded image. Setting these properties to an image URL or a base64-encoded image will still set the custom image as before.
- idleImage
idleImage: string | null
Added in version 6.13.0
The button image to display when idle (i.e. not pressed) encoded as Base64.
- pressedImage
pressedImage: string | null
Added in version 6.13.0
The button image to display when pressed encoded as Base64.
- behavior
behavior: CameraSwitchBehavior
Added in version 8.6.0
Determines how the next camera is selected when the control is tapped. Defaults to CameraSwitchBehavior.Cycle, which cycles through all available cameras. Set to CameraSwitchBehavior.Flip to flip between the user-facing and world-facing cameras instead.