Camera Switch Control
Defined in framework ScanditCaptureCore
- CameraSwitchControl
open class CameraSwitchControl : NSObject, Control
Added in version 6.10.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.
- init
init(primaryCamera: Camera, secondaryCamera: Camera)
Added in version 6.10.0
Initializes a CameraSwitchControl with two cameras.
- primaryCamera
open var primaryCamera: Camera { get }
Added in version 6.10.0
The primary camera. Calling DataCaptureView.addControl() sets this camera as the view’s context frame source.
- secondaryCamera
open var secondaryCamera: Camera { get }
Added in version 6.10.0
The secondary camera.
- primaryCameraImage
open var primaryCameraImage: UIImage { get, set }
Added in version 6.10.0
The button image displayed when the primary camera is selected.
- primaryCameraPressedImage
open var primaryCameraPressedImage: UIImage { get, set }
Added in version 6.10.0
The button image displayed when the primary camera is selected and pressed.
- secondaryCameraImage
open var secondaryCameraImage: UIImage { get, set }
Added in version 6.10.0
The button image displayed when the secondary camera is selected.
- secondaryCameraPressedImage
open var secondaryCameraPressedImage: UIImage { get, set }
Added in version 6.10.0
The button image displayed when the secondary camera is selected and pressed.
- accessibilityLabelWhenWorldFacing
open var accessibilityLabelWhenWorldFacing: String? { get, set }
Added in version 6.14.0
Accessibility label text used for the button when the world facing camera is selected.
- accessibilityHintWhenWorldFacing
open var accessibilityHintWhenWorldFacing: String? { get, set }
Added in version 6.14.0
Accessibility hint text used for the button when the world facing camera is selected.
- accessibilityLabelWhenUserFacing
open var accessibilityLabelWhenUserFacing: String? { get, set }
Added in version 6.14.0
Accessibility label text used for the button when the user facing camera is selected.
- accessibilityHintWhenUserFacing
open var accessibilityHintWhenUserFacing: String? { get, set }
Added in version 6.14.0
Accessibility hint text used for the button when the user facing camera is selected.
- defaultPrimaryCameraImage
open class var defaultPrimaryCameraImage: UIImage { get }
Added in version 6.10.0
The default button image used by the control for the primary camera. Can be used to reset to the original image.
- defaultPrimaryCameraPressedImage
open class var defaultPrimaryCameraPressedImage: UIImage { get }
Added in version 6.10.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
open class var defaultSecondaryCameraImage: UIImage { get }
Added in version 6.10.0
The default button image used by the control for the secondary camera. Can be used to reset to the original image.
- defaultSecondaryCameraPressedImage
open class var defaultSecondaryCameraPressedImage: UIImage { get }
Added in version 6.10.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.