CustomContentValidator

data class CustomContentValidator(var allowedCharacters: String = "", var callback: ContentValidationCallback? = null) : ContentValidator, Parcelable

Custom content validator.

Constructors

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

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'.

Link copied to clipboard

Custom validation callback.

Functions

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