Focus Gestures
Defined in namespace Scandit.DataCapture.Core.UI.Gesture
- IFocusGesture
interface IFocusGesture
Added in version 6.6.0
Common interface for all the focus gestures.
- TriggerFocus()
void
TriggerFocus(PointWithUnit point)Added in version 6.7.0
Triggers a focus as if the focus gesture was performed.
- AddListener()
void
AddListener(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()
void
RemoveListener(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()
string
ToJson()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()
void
TriggerFocus(PointWithUnit point)Added in version 6.7.0
Implemented from IFocusGesture. See IFocusGesture.TriggerFocus().
- AddListener()
void
AddListener(IFocusGestureListener listener)Added in version 6.7.0
Implemented from IFocusGesture. See IFocusGesture.AddListener().
- RemoveListener()
void
RemoveListener(IFocusGestureListener listener)Added in version 6.7.0
Implemented from IFocusGesture. See IFocusGesture.RemoveListener().
- ToJson()
string
ToJson()Added in version 6.7.0
Implemented from IFocusGesture. See IFocusGesture.ToJson().