Package io.scanbot.sdk.textpattern
Class CustomContentValidator
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CustomContentValidator extends ContentValidator implements Parcelable
Custom content validator.
-
-
Field Summary
Fields Modifier and Type Field Description private final String_typeprivate StringallowedCharactersprivate ContentValidationCallbackcallback
-
Constructor Summary
Constructors Constructor Description CustomContentValidator(Map<String, Object> source)CustomContentValidator(JSONObject json)CustomContentValidator(String allowedCharacters, ContentValidationCallback callback)
-
Method Summary
Modifier and Type Method Description Stringget_type()final StringgetAllowedCharacters()OCR whitelist. final UnitsetAllowedCharacters(String allowedCharacters)OCR whitelist. final ContentValidationCallbackgetCallback()Custom validation callback. final UnitsetCallback(ContentValidationCallback callback)Custom validation callback. JSONObjecttoJson(ToJsonConfiguration config)CustomContentValidatorclone()final static CustomContentValidatordefault()-
-
Constructor Detail
-
CustomContentValidator
CustomContentValidator(JSONObject json)
-
CustomContentValidator
CustomContentValidator(String allowedCharacters, ContentValidationCallback callback)
-
-
Method Detail
-
getAllowedCharacters
final String getAllowedCharacters()
OCR whitelist. Empty string means no restriction.
Default is ""
-
setAllowedCharacters
final Unit setAllowedCharacters(String allowedCharacters)
OCR whitelist. Empty string means no restriction.
Default is ""
-
getCallback
final ContentValidationCallback getCallback()
Custom validation callback.
-
setCallback
final Unit setCallback(ContentValidationCallback callback)
Custom validation callback.
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
clone
CustomContentValidator clone()
-
default
final static CustomContentValidator default()
-
-
-
-