Zoom Gestures
Defined in framework ScanditDataCaptureCore
- SDCZoomGesture
@protocol SDCZoomGesture <NSObject>
Added in version 6.6.0
Common protocol for all the zoom gestures.
- - triggerZoomIn
- (
void
)triggerZoomInAdded in version 6.7.0
Triggers a zoom in as if the zoom in gesture was performed.
- - triggerZoomOut
- (
void
)triggerZoomOutAdded in version 6.7.0
Triggers a zoom out as if the zoom out gesture was performed.
- - addListener:
- (
void
)addListener:(nonnull id<SDCZoomGestureListener>)listenerAdded 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.
- - removeListener:
- (
void
)removeListener:(nonnull id<SDCZoomGestureListener>)listenerAdded 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.
- SDCSwipeToZoom
@interface SDCSwipeToZoom : NSObject <SDCZoomGesture>
Added in version 6.6.0
Swipe to zoom gesture.
- + swipeToZoom
+ (nonnull SDCSwipeToZoom *)swipeToZoom
Added in version 6.6.0
Constructs a new SwipeToZoom instance. The zoom levels can be changed in the SDCCameraSettings through zoomFactor (zoom factor when zoomed out) and zoomGestureZoomFactor (zoom factor when zoomed in).
- JSONString
@property (nonatomic, nonnull, readonly) NSString *JSONString
Added in version 6.7.0
Implemented from SDCZoomGesture. See SDCZoomGesture.JSONString.