Zoom Switch Control
Defined in framework ScanditCaptureCore
- ZoomSwitchControl
open class ZoomSwitchControl : NSObject, Control
Added in version 6.10.0
Control that allows to switch between two camera zoom levels defined by CameraSettings.zoomFactor and CameraSettings.zoomGestureZoomFactor.
You can add this control to a view by calling DataCaptureView.addControl().
- init
convenience init(fromJSONString JSONString: String) throws
Added in version 6.10.0
Constructs a new zoom switch control with the provided JSON serialization.
- init
init()
Added in version 6.10.0
Initializes a new ZoomSwitchControl.
- zoomedOutImage
open var zoomedOutImage: UIImage { get, set }
Added in version 6.10.0
The button image displayed when the zoom level is set to 1x.
- zoomedOutPressedImage
open var zoomedOutPressedImage: UIImage { get, set }
Added in version 6.10.0
The button image displayed when the zoom level is set to 1x and the button is pressed.
- zoomedInImage
open var zoomedInImage: UIImage { get, set }
Added in version 6.10.0
The button image displayed when the zoom level is set to 2x.
- zoomedInPressedImage
open var zoomedInPressedImage: UIImage { get, set }
Added in version 6.10.0
The button image displayed when the zoom level is set to 2x and pressed.
- defaultZoomedOutImage
open class var defaultZoomedOutImage: UIImage { get }
Added in version 6.10.0
The default button image displayed when the zoom level is set to 1x.
- defaultZoomedOutPressedImage
open class var defaultZoomedOutPressedImage: UIImage { get }
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
open class var defaultZoomedInImage: UIImage { get }
Added in version 6.10.0
The default button image displayed when the zoom level is set to 2x.
- defaultZoomedInPressedImage
open class var defaultZoomedInPressedImage: UIImage { get }
Added in version 6.10.0
The default button image displayed when the zoom level is set to 2x and pressed.
- accessibilityLabelWhenZoomedOut
open var accessibilityLabelWhenZoomedOut: String? { get, set }
Added in version 7.4.1
Accessibility label text used for the control button when zoomed out.
- accessibilityLabelWhenZoomedIn
open var accessibilityLabelWhenZoomedIn: String? { get, set }
Added in version 7.4.1
Accessibility label text used for the control button when zoomed in.
- accessibilityHintWhenZoomedOut
open var accessibilityHintWhenZoomedOut: String? { get, set }
Added in version 7.4.1
Accessibility hint text used for the control button when zoomed out.
- accessibilityHintWhenZoomedIn
open var accessibilityHintWhenZoomedIn: String? { get, set }
Added in version 7.4.1
Accessibility hint text used for the control button when zoomed in.
- update
open func update(fromJSONString JSONString: String) throws ->
VoidAdded in version 6.10.0
Updates the control according to a JSON serialization.
- add
open func add(_ listener: any ZoomSwitchControlListener) ->
VoidAdded in version 6.18.0
Adds the listener to this control.
- remove
open func remove(_ listener: any ZoomSwitchControlListener) ->
VoidAdded in version 6.18.0
Removes a previously added listener from this control.