CroppingConfiguration

data class CroppingConfiguration(var version: String = "1.0", var screen: String = "CroppingConfiguration", var palette: Palette = Palette( sbColorPrimary = ScanbotColor("#C8193C", isArgb = false), sbColorPrimaryDisabled = ScanbotColor("#F5F5F5", isArgb = false), sbColorNegative = ScanbotColor("#FF3737", isArgb = false), sbColorPositive = ScanbotColor("#4EFFB4", isArgb = false), sbColorWarning = ScanbotColor("#FFCE5C", isArgb = false), sbColorSecondary = ScanbotColor("#FFEDEE", isArgb = false), sbColorSecondaryDisabled = ScanbotColor("#F5F5F5", isArgb = false), sbColorOnPrimary = ScanbotColor("#FFFFFF", isArgb = false), sbColorOnSecondary = ScanbotColor("#C8193C", isArgb = false), sbColorSurface = ScanbotColor("#FFFFFF", isArgb = false), sbColorOutline = ScanbotColor("#EFEFEF", isArgb = false), sbColorOnSurfaceVariant = ScanbotColor("#707070", isArgb = false), sbColorOnSurface = ScanbotColor("#000000", isArgb = false), sbColorSurfaceLow = ScanbotColor("#00000026", isArgb = false), sbColorSurfaceHigh = ScanbotColor("#0000007A", isArgb = false), sbColorModalOverlay = ScanbotColor("#000000A3", isArgb = false) ), var documentUuid: String, var pageUuid: String, var localization: CroppingTextLocalization = CroppingTextLocalization( ), var appearance: CroppingAppearanceConfiguration = CroppingAppearanceConfiguration( ), var cropping: CroppingScreenConfiguration = CroppingScreenConfiguration( ), var documentAnalysisMode: DocumentAnalysisMode = DocumentAnalysisMode.UNFILTERED_DOCUMENT) : Parcelable

Configuration of the standalone cropping screen.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(version: String = "1.0", screen: String = "CroppingConfiguration", palette: Palette = Palette( sbColorPrimary = ScanbotColor("#C8193C", isArgb = false), sbColorPrimaryDisabled = ScanbotColor("#F5F5F5", isArgb = false), sbColorNegative = ScanbotColor("#FF3737", isArgb = false), sbColorPositive = ScanbotColor("#4EFFB4", isArgb = false), sbColorWarning = ScanbotColor("#FFCE5C", isArgb = false), sbColorSecondary = ScanbotColor("#FFEDEE", isArgb = false), sbColorSecondaryDisabled = ScanbotColor("#F5F5F5", isArgb = false), sbColorOnPrimary = ScanbotColor("#FFFFFF", isArgb = false), sbColorOnSecondary = ScanbotColor("#C8193C", isArgb = false), sbColorSurface = ScanbotColor("#FFFFFF", isArgb = false), sbColorOutline = ScanbotColor("#EFEFEF", isArgb = false), sbColorOnSurfaceVariant = ScanbotColor("#707070", isArgb = false), sbColorOnSurface = ScanbotColor("#000000", isArgb = false), sbColorSurfaceLow = ScanbotColor("#00000026", isArgb = false), sbColorSurfaceHigh = ScanbotColor("#0000007A", isArgb = false), sbColorModalOverlay = ScanbotColor("#000000A3", isArgb = false) ), documentUuid: String, pageUuid: String, localization: CroppingTextLocalization = CroppingTextLocalization( ), appearance: CroppingAppearanceConfiguration = CroppingAppearanceConfiguration( ), cropping: CroppingScreenConfiguration = CroppingScreenConfiguration( ), documentAnalysisMode: DocumentAnalysisMode = DocumentAnalysisMode.UNFILTERED_DOCUMENT)

Properties

Link copied to clipboard

Configuration of the general appearance for the cropping screen.

Link copied to clipboard

Configuration of the cropping screen.

Link copied to clipboard

Determines if the quality analysis for the acknowledgement mode will run on the filtered or the unfiltered image.

Link copied to clipboard

The UUID of the document to be cropped.

Link copied to clipboard

Configuration of all the strings for the standalone cropping screen.

Link copied to clipboard

The UUID of the page of the document to be cropped.

Link copied to clipboard

Define the screen's base color values from which other colors are derived.

Link copied to clipboard

The configuration object should be applied for this screen.

Link copied to clipboard

Version number of the configuration object.

Functions

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