Zoom Switch Control Listener

Defined in framework ScanditCaptureCore

ZoomSwitchControlListener
protocol ZoomSwitchControlListener : NSObjectProtocol

Added in version 6.18.0

Deprecated since version 8.4: Use ZoomListener instead. Will be removed in a future release.

Listener for observing the zoom changes. This listener is typically used when you want to react to zoom control being tapped to update UI elements or similar.

zoomControlDidZoom(in:)
open func zoomControlDidZoom(in zoomControl: ZoomSwitchControl) -> Void

Added in version 6.18.0

Deprecated since version 8.4: Use ZoomListener.didChangeZoomFactor(_:oldZoomFactor:) instead. Will be removed in a future release.

Called when a zoom in action triggered.

zoomControlDidZoomOut(_:)
open func zoomControlDidZoomOut(_ zoomControl: ZoomSwitchControl) -> Void

Added in version 6.18.0

Deprecated since version 8.4: Use ZoomListener.didChangeZoomFactor(_:oldZoomFactor:) instead. Will be removed in a future release.

Called when a zoom out action triggered.