FinderOverlayView

Represents default ScanbotSDK Finder view overlay

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context, attr: AttributeSet?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var finderInsets: <Error class: unknown class>

Changes finder view padding to preview edges

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var safeAreaInsets: <Error class: unknown class>

Set a padding to finder parts that will be covered with other view's, like toolbar on top of the screen, and navigation bars on bottom of the screens

Link copied to clipboard

Set the maximus size of the finder bigger size. Finder can be smaller if the size of screen minus insets is smaller than finderMaxSize

Link copied to clipboard

Set the maximus size of the finder bigger size. Finder can be smaller if the size of screen minus insets is smaller than finderMaxSize

Functions

Link copied to clipboard
open override fun onAutoSnappingCanceled()

Triggers when autosnapping won't start within this delay

Link copied to clipboard
open override fun onAutoSnappingFinished()

Triggers when autosnapping is finished (it happens when camera returns taken picture)

Link copied to clipboard
open override fun onAutoSnappingIn(ms: Long)

Triggers when autosnapping will start in within delay

Link copied to clipboard
Link copied to clipboard

Changes stroke color of the polygon animated progress line.

Link copied to clipboard

Changes width of the stroke of the autosnapping animated polygon.

Link copied to clipboard

Set view on bottom of the finder window

Link copied to clipboard
open override fun setCameraParameters(previewWidth: Int, previewHeight: Int, cameraPreviewMode: CameraPreviewMode)

Set camera parameters

Link copied to clipboard
fun setCornerRadius(radius: Int)

Changes the corner Radius of the Finder view.

Link copied to clipboard
fun setFinderInset(left: Int? = null, top: Int? = null, right: Int? = null, bottom: Int? = null)

Changes finder view visible paddings to its edges

Link copied to clipboard
fun setFinderMinPadding(padding: Int)

Changes finder view padding to screen edges. WILL OVERRIDE finderInsets param

Link copied to clipboard

Set view inside of the finder window

Link copied to clipboard
fun setFixedFinderHeight(fixedFinderHeight: Int)

Set fixed Finder view window height.

Link copied to clipboard
fun setFixedFinderWidth(fixedFinderWidth: Int)

Set fixed Finder view window width.

Link copied to clipboard
fun setOverlayColor(overlayColor: Int)

Changes fill color of the Finder view

Link copied to clipboard
fun setRequiredAspectRatios(requiredAspectRatios: List<AspectRatio>)

Set required {@link PageAspectRatio}s.

Link copied to clipboard
fun setSafeAreaInset(left: Int? = null, top: Int? = null, right: Int? = null, bottom: Int? = null)

Changes additional finder view paddings that works as safe area to the others views

Link copied to clipboard
open override fun setScaleX(scaleX: Float)
Link copied to clipboard
open override fun setScaleY(scaleY: Float)
Link copied to clipboard
fun setStrokeColor(strokeColor: Int)

Changes stroke color of the Finder view.

Link copied to clipboard
fun setStrokeWidth(strokeWidth: Int)

Changes stroke width of the Finder view.

Link copied to clipboard

Set view on top of the finder window

Link copied to clipboard