Zoom Switch Control
Defined in framework ScanditDataCaptureCore
- SDCZoomSwitchControl
@interface SDCZoomSwitchControl : NSObject <SDCControl>
Added in version 6.10.0
Control that allows to switch between two camera zoom levels defined by SDCCameraSettings.zoomFactor and SDCCameraSettings.zoomGestureZoomFactor.
You can add this control to a view by calling SDCDataCaptureView.addControl:.
- + zoomSwitchControlFromJSONString:error:
+ (nullable
instancetype
)zoomSwitchControlFromJSONString:(nonnull NSString *)JSONString error:(NSError **)errorAdded in version 6.10.0
Constructs a new zoom switch control with the provided JSON serialization.
- zoomedOutImage
@property (nonatomic, strong, nonnull) UIImage *zoomedOutImage
Added in version 6.10.0
The button image displayed when the zoom level is set to 1x.
- zoomedOutPressedImage
@property (nonatomic, strong, nonnull) UIImage *zoomedOutPressedImage
Added in version 6.10.0
The button image displayed when the zoom level is set to 1x and the button is pressed.
- zoomedInImage
@property (nonatomic, strong, nonnull) UIImage *zoomedInImage
Added in version 6.10.0
The button image displayed when the zoom level is set to 2x.
- zoomedInPressedImage
@property (nonatomic, strong, nonnull) UIImage *zoomedInPressedImage
Added in version 6.10.0
The button image displayed when the zoom level is set to 2x and pressed.
- defaultZoomedOutImage
@property (class, nonatomic, nonnull, readonly) UIImage *defaultZoomedOutImage
Added in version 6.10.0
The default button image displayed when the zoom level is set to 1x.
- defaultZoomedOutPressedImage
@property (class, nonatomic, nonnull, readonly) UIImage *defaultZoomedOutPressedImage
Added in version 6.10.0
The default button image displayed when the zoom level is set to 1x and the button is pressed.
- defaultZoomedInImage
@property (class, nonatomic, nonnull, readonly) UIImage *defaultZoomedInImage
Added in version 6.10.0
The default button image displayed when the zoom level is set to 2x.
- defaultZoomedInPressedImage
@property (class, nonatomic, nonnull, readonly) UIImage *defaultZoomedInPressedImage
Added in version 6.10.0
The default button image displayed when the zoom level is set to 2x and pressed.
- - updateFromJSONString:error:
- (
BOOL
)updateFromJSONString:(nonnull NSString *)JSONString error:(NSError **)errorAdded in version 6.10.0
Updates the control according to a JSON serialization.
- - addListener:
- (
void
)addListener:(nonnull id<SDCZoomSwitchControlListener>)listenerAdded in version 6.18.0
Adds the listener to this control.
- - removeListener:
- (
void
)removeListener:(nonnull id<SDCZoomSwitchControlListener>)listenerAdded in version 6.18.0
Removes a previously added listener from this control.