EmailValidator

object EmailValidator

Contains a helper method to verify the validity of an email address.

Upon signing in to the SDK, the SDK will pull down a separate email regex from the server config, and use it instead of the hardcoded regex bundled with the SDK (EMAIL_VALIDATION_REGEX).

Functions

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

Properties

EMAIL_REGEX_FROM_CONFIG
Link copied to clipboard
var EMAIL_REGEX_FROM_CONFIG: Regex
An email validation regex that is retrieved from the DexCare backend after signing in to the SDK.
EMAIL_VALIDATION_REGEX
Link copied to clipboard
val EMAIL_VALIDATION_REGEX: <ERROR CLASS>
The hardcoded regex bundled with the SDK.