Package io.scanbot.sdk.ui.camera
Class ZoomFinderOverlayView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.ViewManager
,android.view.ViewParent
,android.view.accessibility.AccessibilityEventSource
,io.scanbot.sdk.camera.IFinderView
,io.scanbot.sdk.camera.autosnapping.IAutoSnappingController.AutoSnappingStateListener
public final class ZoomFinderOverlayView extends FinderOverlayView
Represents default ScanbotSDK Finder view overlay with zoom functionality The view uses aspect ratio and fixed height. The fixed_width parameter is ignored
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
zoomModeEnabled
private Float
zoomLevel
-
Constructor Summary
Constructors Constructor Description ZoomFinderOverlayView(Context context, AttributeSet attr)
-
Method Summary
Modifier and Type Method Description final Boolean
getZoomModeEnabled()
final Unit
setZoomModeEnabled(Boolean zoomModeEnabled)
final Float
getZoomLevel()
Allows the user to set the needed zoom level for the finder and for dependent views. final Unit
setZoomLevel(Float zoomLevel)
final Unit
addCameraZoomDelegate(UiZoomDelegate delegate)
Adds a delegate to control the dependent view from this ZoomFinderOverlayView final Unit
removeCameraZoomDelegate(UiZoomDelegate delegate)
Remove a delegate to control the dependent view from this ZoomFinderOverlayView -
-
Constructor Detail
-
ZoomFinderOverlayView
ZoomFinderOverlayView(Context context, AttributeSet attr)
-
-
Method Detail
-
getZoomModeEnabled
final Boolean getZoomModeEnabled()
-
setZoomModeEnabled
final Unit setZoomModeEnabled(Boolean zoomModeEnabled)
-
getZoomLevel
final Float getZoomLevel()
Allows the user to set the needed zoom level for the finder and for dependent views. If the new value is too big it will be clamped to fill the screen according to given padding
-
setZoomLevel
final Unit setZoomLevel(Float zoomLevel)
-
addCameraZoomDelegate
final Unit addCameraZoomDelegate(UiZoomDelegate delegate)
Adds a delegate to control the dependent view from this ZoomFinderOverlayView
- Parameters:
delegate
- delegate to add
-
removeCameraZoomDelegate
final Unit removeCameraZoomDelegate(UiZoomDelegate delegate)
Remove a delegate to control the dependent view from this ZoomFinderOverlayView
- Parameters:
delegate
- delegate to remove
-
-
-
-