DocumentPolygonConfiguration

data class DocumentPolygonConfiguration(var visibility: UserGuidanceVisibility = UserGuidanceVisibility.ENABLED, var documentOk: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorPositive", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0 ), var documentNotOk: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorNegative", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0 ), var autoSnapProgress: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("#40A9FF", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0 )) : Parcelable

Configuration of the document contour detection polygon.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(visibility: UserGuidanceVisibility = UserGuidanceVisibility.ENABLED, documentOk: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorPositive", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0 ), documentNotOk: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorNegative", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0 ), autoSnapProgress: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("#40A9FF", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0 ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Configuration of the animated polygon when the document is being scanned for capturing in 'auto snapping mode'.

Link copied to clipboard

Configuration of the polygon when the detected document status is 'not OK'.

Link copied to clipboard

Configuration of the polygon when the detected document status is 'OK'.

Link copied to clipboard

Determines the visibility mode for the polygon.

Functions

Link copied to clipboard
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject