PermanentViewFinderConfiguration

data class PermanentViewFinderConfiguration(var style: FinderStyle = FinderCorneredStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), strokeWidth = 2.0, cornerRadius = 10.0 ), var overlayColor: ScanbotColor = ScanbotColor("?sbColorSurfaceLow", isArgb = false), var aspectRatio: AspectRatio = AspectRatio( width = 1.0, height = 1.0 ), var minimumInsets: EdgeInsets = EdgeInsets( top = 16.0, left = 16.0, bottom = 16.0, right = 16.0 ), var preferredHeight: Double = -1.0) : BaseViewFinderConfiguration, Parcelable

Configuration of the scanning interface’s viewfinder, which is always visible to guide the user.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(style: FinderStyle = FinderCorneredStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), strokeWidth = 2.0, cornerRadius = 10.0 ), overlayColor: ScanbotColor = ScanbotColor("?sbColorSurfaceLow", isArgb = false), aspectRatio: AspectRatio = AspectRatio( width = 1.0, height = 1.0 ), minimumInsets: EdgeInsets = EdgeInsets( top = 16.0, left = 16.0, bottom = 16.0, right = 16.0 ), preferredHeight: Double = -1.0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val _type: String
Link copied to clipboard
open override var aspectRatio: AspectRatio

The viewfinder's aspect ratio.

Link copied to clipboard
open override var minimumInsets: EdgeInsets

The minimum insets of the viewfinder.

Link copied to clipboard
open override var overlayColor: ScanbotColor

The color of the viewfinder overlay.

Link copied to clipboard
open override var preferredHeight: Double

The preferred height of the viewfinder.

Link copied to clipboard
open override var style: FinderStyle

The visual appearance of the viewfinder.

Functions

Link copied to clipboard
Link copied to clipboard
open override fun toJson(config: ToJsonConfiguration): JSONObject