Added in API level 27

Validator


interface Validator
LuhnChecksumValidator

Validator that returns true if the number created by concatenating all given fields pass a Luhn algorithm checksum.

RegexValidator

Defines if a field is valid based on a regular expression (regex).

Class used to define whether a condition is satisfied.

Typically used to avoid displaying the save UI when the user input is invalid.

Summary