ArOverlayPolygonConfiguration

data class ArOverlayPolygonConfiguration(var visible: Boolean = true, var deselected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0, cornerRadius = 2.0 ), var selected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorPositive", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0, cornerRadius = 2.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, deselected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0, cornerRadius = 2.0 ), selected: PolygonStyle = PolygonStyle( strokeColor = ScanbotColor("?sbColorPositive", isArgb = false), fillColor = ScanbotColor("#00000000", isArgb = false), strokeWidth = 2.0, cornerRadius = 2.0 ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Appearance of the overlay polygon when a barcode is not selected.

Link copied to clipboard

Appearance of the overlay polygon after a barcode has been selected.

Link copied to clipboard

Control the visibility of the overlay polygon. Default is true

Functions

Link copied to clipboard
fun toJson(): JsonObject