public class FinderOverlayView implements IFinderView
Represents default ScanbotSDK Finder view overlay
public FinderOverlayView(@NotNull
android.content.Context context,
@Nullable
android.util.AttributeSet attr)
Represents default ScanbotSDK Finder view overlay
protected int getFixedFinderWidthInPx()
protected void setFixedFinderWidthInPx(int p)
protected int getFixedFinderHeightInPx()
protected void setFixedFinderHeightInPx(int p)
protected int getMinFinderPadding()
protected void setMinFinderPadding(int p)
protected int getInitialPreviewWidth()
protected void setInitialPreviewWidth(int p)
protected int getInitialPreviewHeight()
protected void setInitialPreviewHeight(int p)
@NotNull protected CameraPreviewMode getInitialPreviewMode()
protected void setInitialPreviewMode(@NotNull
CameraPreviewMode p)
@Nullable protected java.util.List<io.scanbot.sdk.ui.camera.FinderAspectRatio> getRequiredAspectRatiosInternal()
protected void setRequiredAspectRatiosInternal(@Nullable
java.util.List<io.scanbot.sdk.ui.camera.FinderAspectRatio> p)
protected void dispatchDraw(@NotNull
android.graphics.Canvas canvas)
protected void onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
public void setCameraParameters(int previewWidth,
int previewHeight,
@NotNull
CameraPreviewMode cameraPreviewMode)
Set camera parameters
previewWidth - previewHeight - cameraPreviewMode - public void setOverlayColor(int overlayColor)
Changes fill color of the Finder view
overlayColor - color (not resource!) to draw Finder overlay with. Alpha channel is supported.public void setStrokeColor(int strokeColor)
Changes stroke color of the Finder view.
strokeColor - color (not resource!) to draw Finder overlay lines with. Alpha channel is supported.public void setStrokeWidth(int strokeWidth)
Changes stroke width of the Finder view.
strokeWidth - width (not resource!) to draw Finder overlay lines with.public void setFixedFinderWidth(int fixedFinderWidth)
Set fixed Finder view window width.
fixedFinderWidth - fixed width (not resource!) to draw Finder overlay window.public void setFixedFinderHeight(int fixedFinderHeight)
Set fixed Finder view window height.
fixedFinderHeight - fixed height (not resource!) to draw Finder overlay window.public void setVerticalOffset(int offset)
Set vertical padding for the Finder window from the center of screen
public void setRequiredAspectRatios(@NotNull
java.util.List<io.scanbot.sdk.ui.camera.FinderAspectRatio> requiredAspectRatios)
Set required {@link PageAspectRatio}s.
requiredAspectRatios - @Nullable protected java.util.List<io.scanbot.sdk.ui.camera.FinderAspectRatio> getRequiredAspectRatios()
protected void setInitialFinderViewSize()
protected void adjustDescriptionPosition(int paddingTopBottom)
public void setScaleX(float scaleX)
public void setScaleY(float scaleY)