public 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
public static float MAX_ZOOM
public static float DEFAULT_HEIGHT
public static double DEFAULT_ASPECT_RATIO
public static io.scanbot.sdk.ui.camera.ZoomFinderOverlayView.Companion Companion
public ZoomFinderOverlayView(@NotNull
android.content.Context context,
@Nullable
android.util.AttributeSet attr)
Represents default ScanbotSDK Finder view overlay with zoom functionality The view uses aspect ratio and fixed height. The fixed_width parameter is ignored
public 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
public void setZoomLevel(float value)
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
public void addCameraZoomDelegate(@NotNull
UiZoomDelegate delegate)
Adds a delegate to control the dependent view from this class ZoomFinderOverlayView
delegate - delegate to addclass ZoomFinderOverlayViewpublic void removeCameraZoomDelegate(@NotNull
UiZoomDelegate delegate)
Remove a delegate to control the dependent view from this class ZoomFinderOverlayView
delegate - delegate to removeclass ZoomFinderOverlayViewprotected void onAttachedToWindow()
protected void onDetachedFromWindow()
protected void setInitialFinderViewSize()