Zoom Gestures
Defined in framework ScanditCaptureCore
- ZoomGesture
protocol ZoomGesture : NSObjectProtocol
Added in version 6.6.0
Common protocol for all the zoom gestures.
- triggerZoomIn
open func triggerZoomIn() ->
VoidAdded in version 6.7.0
Triggers a zoom in as if the zoom in gesture was performed.
- triggerZoomOut
open func triggerZoomOut() ->
VoidAdded in version 6.7.0
Triggers a zoom out as if the zoom out gesture was performed.
- add
open func add(_ listener: any ZoomGestureListener) ->
VoidAdded in version 6.1.0
Adds the listener to this gesture.
In case the same listener is already observing this instance, calling this method will not add the listener again. The listener is stored using a weak reference and must thus be retained by the caller for it to not go out of scope.
- remove
open func remove(_ listener: any ZoomGestureListener) ->
VoidAdded in version 6.1.0
Removes a previously added listener from this gesture.
In case the listener is not currently observing this instance, calling this method has no effect.
- SwipeToZoom
open class SwipeToZoom : NSObject, ZoomGesture
Added in version 6.6.0
Swipe to zoom gesture.
- init
init()
Added in version 6.6.0
Constructs a new SwipeToZoom instance. The zoom levels can be changed in the CameraSettings through zoomFactor (zoom factor when zoomed out) and zoomGestureZoomFactor (zoom factor when zoomed in).
- jsonString
open var jsonString: String { get }
Added in version 6.7.0
Implemented from ZoomGesture. See ZoomGesture.jsonString.