Pattern Content Validator
data class PatternContentValidator(var allowedCharacters: String = "", var pattern: String, var matchSubstring: Boolean = false, var patternGrammar: PatternGrammar = PatternGrammar.WILDCARD) : ContentValidator, Parcelable
Pattern content validator.
Constructors
Link copied to clipboard
constructor(allowedCharacters: String = "", pattern: String, matchSubstring: Boolean = false, patternGrammar: PatternGrammar = PatternGrammar.WILDCARD)
Properties
Link copied to clipboard
OCR whitelist. Empty string means no restriction. Only characters that are present in the allowedCharacters string will be accepted. For example, if allowedCharacters is set to "ab", the result may only contain characters 'a' and 'b'.
Link copied to clipboard
Whether the pattern should match the whole string or just a substring.
Link copied to clipboard
Grammar of pattern matching.