EmailValidator

object EmailValidator

Contains a helper method to verify the validity of an email address. Note that the validation used in the SDK is stricter than normal email validation. For example, Epic does not allow dashes in email addresses and rejects it at the API level. The validation in the DexCare SDK mimics Epic, and so will reject invalid email addresses at the SDK level, rather than the API level.

Functions

isValid
Link copied to clipboard
fun isValid(emailAddress: String): Boolean
Checks a given email address for validity.

Properties

EMAIL_VALIDATION_REGEX
Link copied to clipboard
val EMAIL_VALIDATION_REGEX: Regex
The Regex used by the SDK to validate email addresses.