FindAndPickArOverlayPolygonConfiguration

data class FindAndPickArOverlayPolygonConfiguration(var visible: Boolean = true, var partiallyScanned: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorWarning", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 3.0, cornerRadius = 5.0 ), var rejected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 3.0, cornerRadius = 5.0 ), var completed: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorPositive", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 3.0, cornerRadius = 5.0 ))

Configuration of the overlay polygon displayed on top of a barcode in the camera preview.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JsonObject)
constructor(visible: Boolean = true, partiallyScanned: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorWarning", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 3.0, cornerRadius = 5.0 ), rejected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 3.0, cornerRadius = 5.0 ), completed: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorPositive", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 3.0, cornerRadius = 5.0 ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Appearance of the overlay polygon when a barcode is completed.

Link copied to clipboard

Appearance of the overlay polygon when a barcode is partially scanned.

Link copied to clipboard

Appearance of the overlay polygon when a barcode is rejected.

Link copied to clipboard

Control the visibility of the overlay polygon. Default is true

Functions

Link copied to clipboard
fun toJson(): JsonObject