Camera Switch Control
Defined in framework ScanditDataCaptureCore
- SDCCameraSwitchControl
@interface SDCCameraSwitchControl : NSObject <SDCControl>
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 SDCDataCaptureView.addControl:.
Adding a camera switch control to a view sets the primary camera as the view’s context frame source.
- - initWithPrimaryCamera:secondaryCamera:
- (nonnull
instancetype
)initWithPrimaryCamera:(nonnull SDCCamera *)primaryCamera secondaryCamera:(nonnull SDCCamera *)secondaryCameraAdded in version 6.10.0
Initializes a CameraSwitchControl with two cameras.
- primaryCamera
@property (nonatomic, strong, nonnull, readonly) SDCCamera *primaryCamera
Added in version 6.10.0
The primary camera. Calling SDCDataCaptureView.addControl: sets this camera as the view’s context frame source.
- secondaryCamera
@property (nonatomic, strong, nonnull, readonly) SDCCamera *secondaryCamera
Added in version 6.10.0
The secondary camera.
- primaryCameraImage
@property (nonatomic, strong, nonnull) UIImage *primaryCameraImage
Added in version 6.10.0
The button image displayed when the primary camera is selected.
- primaryCameraPressedImage
@property (nonatomic, strong, nonnull) UIImage *primaryCameraPressedImage
Added in version 6.10.0
The button image displayed when the primary camera is selected and pressed.
- secondaryCameraImage
@property (nonatomic, strong, nonnull) UIImage *secondaryCameraImage
Added in version 6.10.0
The button image displayed when the secondary camera is selected.
- secondaryCameraPressedImage
@property (nonatomic, strong, nonnull) UIImage *secondaryCameraPressedImage
Added in version 6.10.0
The button image displayed when the secondary camera is selected and pressed.
- accessibilityLabelWhenWorldFacing
@property (nonatomic, copy, nullable) NSString *accessibilityLabelWhenWorldFacing
Added in version 6.14.0
Accessibility label text used for the button when the world facing camera is selected.
- accessibilityHintWhenWorldFacing
@property (nonatomic, copy, nullable) NSString *accessibilityHintWhenWorldFacing
Added in version 6.14.0
Accessibility hint text used for the button when the world facing camera is selected.
- accessibilityLabelWhenUserFacing
@property (nonatomic, copy, nullable) NSString *accessibilityLabelWhenUserFacing
Added in version 6.14.0
Accessibility label text used for the button when the user facing camera is selected.
- accessibilityHintWhenUserFacing
@property (nonatomic, copy, nullable) NSString *accessibilityHintWhenUserFacing
Added in version 6.14.0
Accessibility hint text used for the button when the user facing camera is selected.
- defaultPrimaryCameraImage
@property (class, nonatomic, nonnull, readonly) UIImage *defaultPrimaryCameraImage
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
@property (class, nonatomic, nonnull, readonly) UIImage *defaultPrimaryCameraPressedImage
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
@property (class, nonatomic, nonnull, readonly) UIImage *defaultSecondaryCameraImage
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
@property (class, nonatomic, nonnull, readonly) UIImage *defaultSecondaryCameraPressedImage
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.