Focus Gestures
Defined in namespace Scandit.DataCapture.Core.UI.Gesture
- IFocusGesture
interface IFocusGestureAdded in version 6.6.0
Common interface for all the focus gestures.
- TriggerFocus()
voidTriggerFocus(PointWithUnit point)Added in version 6.7.0
Triggers a focus as if the focus gesture was performed.
- AddListener()
voidAddListener(IFocusGestureListener listener)Added 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.
- RemoveListener()
voidRemoveListener(IFocusGestureListener listener)Added 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.
- ToJson()
stringToJson()Added in version 6.7.0
Returns the JSON representation of the focus gesture.
- TapToFocus
class TapToFocus : IFocusGesture
Added in version 6.6.0
Tap to focus gesture.
- Create()
static TapToFocus Create()
Added in version 6.6.0
Constructs a new TapToFocus instance. The focus strategy can be changed in the CameraSettings through FocusGestureStrategy.
- TriggerFocus()
voidTriggerFocus(PointWithUnit point)Added in version 6.7.0
Implemented from IFocusGesture. See IFocusGesture.TriggerFocus().
- AddListener()
voidAddListener(IFocusGestureListener listener)Added in version 6.7.0
Implemented from IFocusGesture. See IFocusGesture.AddListener().
- RemoveListener()
voidRemoveListener(IFocusGestureListener listener)Added in version 6.7.0
Implemented from IFocusGesture. See IFocusGesture.RemoveListener().
- ToJson()
stringToJson()Added in version 6.7.0
Implemented from IFocusGesture. See IFocusGesture.ToJson().