Text Pattern Scanner Step
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
interface CleanScanningResultCallback
Optional callback to clean scanned string prior to validation. Allows to increase the quality and speed of the scanning.
Link copied to clipboard
interface TextPatternScanningValidationCallback
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
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
Height of the finder when view "unzoomed" (for zoom-level 1.0). Defaults to 40.
Link copied to clipboard
Callback for text validation.