Focus Gestures
Defined in framework ScanditDataCaptureCore
- SDCFocusGesture
@protocol SDCFocusGesture <NSObject>
Added in version 6.6.0
Common protocol for all the focus gestures.
- - triggerFocus:
- (
void
)triggerFocus:(SDCPointWithUnit)pointWithUnitAdded in version 6.7.0
Triggers a focus as if the focus gesture was performed.
- - addListener:
- (
void
)addListener:(nonnull id<SDCFocusGestureListener>)listenerAdded in version 6.7.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<SDCFocusGestureListener>)listenerAdded in version 6.7.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.
- JSONString
@property (nonatomic, nonnull, readonly) NSString *JSONString
Added in version 6.7.0
Returns the JSON representation of the focus gesture.
- showUIIndicator
@property (nonatomic, assign)
BOOL
showUIIndicatorAdded in version 6.19.0
If enabled triggering the focus gesture will also show a visual indicator. Defaults to YES.
- SDCTapToFocus
@interface SDCTapToFocus : NSObject <SDCFocusGesture>
Added in version 6.6.0
Tap to focus gesture.
- + tapToFocus
+ (nonnull SDCTapToFocus *)tapToFocus
Added in version 6.6.0
Constructs a new TapToFocus instance. The focus strategy can be changed in the SDCCameraSettings through focusGestureStrategy.
- JSONString
@property (nonatomic, nonnull, readonly) NSString *JSONString
Added in version 6.7.0
Implemented from SDCFocusGesture. See SDCFocusGesture.JSONString.
- showUIIndicator
@property (nonatomic, assign)
BOOL
showUIIndicatorAdded in version 6.19.0
If enabled triggering the focus gesture will also show a visual indicator. Defaults to YES.