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
_type
private String
allowedCharacters
private ContentValidationCallback
callback
-
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 String
get_type()
final String
getAllowedCharacters()
OCR whitelist. final Unit
setAllowedCharacters(String allowedCharacters)
OCR whitelist. final ContentValidationCallback
getCallback()
Custom validation callback. final Unit
setCallback(ContentValidationCallback callback)
Custom validation callback. JSONObject
toJson(ToJsonConfiguration config)
CustomContentValidator
clone()
final static CustomContentValidator
default()
-
-
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()
-
-
-
-