FinderViewConfiguration

@Immutable
data class FinderViewConfiguration(val enabled: Boolean = true, val lineWidth: Int = 2, val lineColor: ScanbotColor = ScanbotColor("#FFFFFF"), val backgroundColor: ScanbotColor = ScanbotColor("#000000A9"), val aspectRatio: AspectRatio = AspectRatio(4.0, 3.0), val insets: EdgeInsets = EdgeInsets(10.0, 10.0, 10.0, 10.0))

The configuration for the finder overlay displayed on top of the camera preview.

Parameters

enabled

Whether the finder overlay is enabled or not.

lineWidth

The width of the finder frame border.

lineColor

The color of the finder frame border.

backgroundColor

The background color of the detection overlay.

aspectRatio

The aspect ratio of the finder frame (width \ height), which is used to build the actual finder frame.

insets

The minimum space from view finders

Constructors

Link copied to clipboard
constructor(enabled: Boolean = true, lineWidth: Int = 2, lineColor: ScanbotColor = ScanbotColor("#FFFFFF"), backgroundColor: ScanbotColor = ScanbotColor("#000000A9"), aspectRatio: AspectRatio = AspectRatio(4.0, 3.0), insets: EdgeInsets = EdgeInsets(10.0, 10.0, 10.0, 10.0))

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard