Package-level declarations

Types

Link copied to clipboard
class VgsLuhnAlgorithmValidator(val errorMsg: String = ERROR_MESSAGE) : VgsTextFieldValidator

Validator that checks a numeric value against the Luhn checksum algorithm.

Link copied to clipboard
class VgsMinMaxDateValidator(minDate: Long, maxDate: Long, val dateFormat: VgsExpiryDateFormat, val errorMsg: String = ERROR_MESSAGE) : VgsTextFieldValidator

Validator that requires the parsed date to fall within an inclusive range.

Link copied to clipboard
class VgsRegexValidator(val regex: String, val errorMsg: String = ERROR_MESSAGE) : VgsTextFieldValidator

Validator that requires the value to fully match a regular expression.

Link copied to clipboard
class VgsRequiredFieldValidator(val errorMsg: String = ERROR_MESSAGE) : VgsTextFieldValidator

Validator that fails when the field is blank.

Link copied to clipboard
class VgsTextLengthValidator(val lengths: IntArray, val errorMsg: String = ERROR_MESSAGE) : VgsTextFieldValidator

Validator that requires the value's length to match one of the allowed lengths.