PagePreviewMode

data class PagePreviewMode(var accessibilityDescription: String = "?accessibilityDescriptionCameraPreviewButton", var imagePlaceholderColor: ScanbotColor = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false), var pageCounter: BadgeStyle = BadgeStyle( visible = true, background = BackgroundStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), fillColor = ScanbotColor("?sbColorSurface", isArgb = false) ), foregroundColor = ScanbotColor("?sbColorPrimary", isArgb = false) )) : PreviewButton, Parcelable

Configuration of the 'preview' button in 'page preview mode'.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(accessibilityDescription: String = "?accessibilityDescriptionCameraPreviewButton", imagePlaceholderColor: ScanbotColor = ScanbotColor("?sbColorOnSurfaceVariant", isArgb = false), pageCounter: BadgeStyle = BadgeStyle( visible = true, background = BackgroundStyle( strokeColor = ScanbotColor("?sbColorSurface", isArgb = false), fillColor = ScanbotColor("?sbColorSurface", isArgb = false) ), foregroundColor = ScanbotColor("?sbColorPrimary", isArgb = false) ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val _type: String
Link copied to clipboard

The text to be read when the 'preview' button is selected via the accessibility mode.

Link copied to clipboard

The color of the image placeholder.

Link copied to clipboard

Configuration of the page counter icon.

Functions

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