Focus Gestures
Defined in library scandit_datacapture_core_ui
- FocusGesture
abstract class FocusGestureAdded in version 6.7.0
Common interface for all the focus gestures.
- triggerFocus(point)
Future<
void> triggerFocus(PointWithUnit point)Added in version 8.3.0
Triggers a focus as if the focus gesture was performed.
- addListener(listener)
voidaddListener(FocusGestureListener listener)Added in version 8.3.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(listener)
voidremoveListener(FocusGestureListener listener)Added in version 8.3.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.
- TapToFocus
class TapToFocus : FocusGesture
Added in version 6.7.0
Tap to focus gesture.
- TapToFocus(showUIIndicator)
TapToFocus({bool? showUIIndicator})
Added in version 6.7.0
Constructs a new TapToFocus instance. The focus strategy can be changed in the CameraSettings through focusGestureStrategy.
- triggerFocus(point)
Future<
void> triggerFocus(PointWithUnit point)Added in version 8.3.0
Implemented from FocusGesture. See FocusGesture.triggerFocus().
- addListener(listener)
voidaddListener(FocusGestureListener listener)Added in version 8.3.0
Implemented from FocusGesture. See FocusGesture.addListener().
- removeListener(listener)
voidremoveListener(FocusGestureListener listener)Added in version 8.3.0
Implemented from FocusGesture. See FocusGesture.removeListener().