TextPatternScannerStep

data class TextPatternScannerStep(val stepTag: String, val title: String, val guidanceText: String, val pattern: String? = null, val shouldMatchSubstring: Boolean = false, val validationCallback: TextPatternScannerStep.TextPatternScanningValidationCallback? = null, val cleanRecognitionResultCallback: TextPatternScannerStep.CleanScanningResultCallback? = null, val preferredZoom: Float = 1.4f, val aspectRatio: AspectRatio = AspectRatio(4.0, 1.0), val unzoomedFinderHeight: Float = DEFAULT_FINDER_HEIGHT, val allowedSymbols: Set<Char> = setOf(), val significantShakeDelay: Long = SIGNIFICANT_DELAY_DEFAULT)

Defines a single step of the data scanning flow.

Constructors

Link copied to clipboard
constructor(stepTag: String, title: String, guidanceText: String, pattern: String? = null, shouldMatchSubstring: Boolean = false, validationCallback: TextPatternScannerStep.TextPatternScanningValidationCallback? = null, cleanRecognitionResultCallback: TextPatternScannerStep.CleanScanningResultCallback? = null, preferredZoom: Float = 1.4f, aspectRatio: AspectRatio = AspectRatio(4.0, 1.0), unzoomedFinderHeight: Float = DEFAULT_FINDER_HEIGHT, allowedSymbols: Set<Char> = setOf(), significantShakeDelay: Long = SIGNIFICANT_DELAY_DEFAULT)

Types

Link copied to clipboard

Optional callback to clean scanned string prior to validation. Allows to increase the quality and speed of the scanning.

Link copied to clipboard
object Companion
Link copied to clipboard

Callback for the scanned text validation.

Properties

Link copied to clipboard

Allowed symbols to be detected.

Link copied to clipboard

Aspect ratio for the step.

Link copied to clipboard

Callback to clean scanned string prior to validation.

Link copied to clipboard

User guidance for the step.

Link copied to clipboard
val pattern: String? = null

Sets a validation pattern. Supports ? - any character and # - any digit, all other characters represent themselves.

Link copied to clipboard
val preferredZoom: Float = 1.4f

Zoom level required for this step.

Link copied to clipboard

Find and match only part of the whole string if the pattern is used.

Link copied to clipboard

Detection will be paused after significant movement. 0 by default.

Link copied to clipboard

The tag of the scanning step to make. It will be indicated in the result.

Link copied to clipboard

Title for a value.

Link copied to clipboard

Height of the finder when view "unzoomed" (for zoom-level 1.0). Defaults to 40.

Link copied to clipboard

Functions

Link copied to clipboard

Creates a JSON object from screen configuration object.