Zoom Gestures
Defined in package com.scandit.datacapture.core.ui.gesture
- ZoomGesture
interface ZoomGesture
Added in version 6.6.0
Common interface for all the zoom gestures.
- triggerZoomIn()
void
triggerZoomIn()Added in version 6.7.0
Triggers a zoom in as if the zoom in gesture was performed.
- triggerZoomOut()
void
triggerZoomOut()Added in version 6.7.0
Triggers a zoom out as if the zoom out gesture was performed.
- addListener(listener)
void
addListener(@NonNull ZoomGestureListener 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(listener)
void
removeListener(@NonNull ZoomGestureListener 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.
- SwipeToZoom
class SwipeToZoom : ZoomGesture
Added in version 6.6.0
Swipe to zoom gesture.
- SwipeToZoom()
SwipeToZoom()
Added in version 6.6.0
Constructs a new SwipeToZoom instance. The zoom levels can be changed in the CameraSettings through zoomFactor (zoom factor when zoomed out) and zoomGestureZoomFactor (zoom factor when zoomed in).
- triggerZoomIn()
void
triggerZoomIn()Added in version 6.7.0
Implemented from ZoomGesture. See ZoomGesture.triggerZoomIn().
- triggerZoomOut()
void
triggerZoomOut()Added in version 6.7.0
Implemented from ZoomGesture. See ZoomGesture.triggerZoomOut().
- addListener(listener)
void
addListener(@NonNull ZoomGestureListener listener)Added in version 6.7.0
Implemented from ZoomGesture. See ZoomGesture.addListener().
- removeListener(listener)
void
removeListener(@NonNull ZoomGestureListener listener)Added in version 6.7.0
Implemented from ZoomGesture. See ZoomGesture.removeListener().
- toJson()
@NonNull String toJson()
Added in version 6.7.0
Implemented from ZoomGesture. See ZoomGesture.toJson().