DefaultContentValidator

data class DefaultContentValidator(var allowedCharacters: String = "") : ContentValidator, Parcelable

Default content validator. Accepts only non-empty strings.

Constructors

Link copied to clipboard
constructor(source: Map<String, Any?>)
constructor(json: JSONObject)
constructor(allowedCharacters: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val _type: String
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'.

Functions

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