A2uiEmailFunction


class A2uiEmailFunction : A2uiFunction


Validates if a string is a valid email address.

Use this A2uiFunction to check email formatting.

Summary

Public companion properties

A2uiEmailFunction

Public functions

open Any?
execute(args: Map<StringAny>, executionContext: A2uiExecutionContext)

Runs email format validation on the given args.

Public properties

open A2uiFunctionDefinition

The definition of the function.

Public companion properties

INSTANCE

val INSTANCEA2uiEmailFunction

Public functions

execute

open fun execute(args: Map<StringAny>, executionContext: A2uiExecutionContext): Any?

Runs email format validation on the given args.

Parameters
args: Map<StringAny>

arguments containing the "value" string to validate

executionContext: A2uiExecutionContext

context allowing to execute other functions, evaluate dynamic payloads and resolving data bindings

Returns
Any?

true if the value matches the email regex, false otherwise

Public properties

definition

open val definitionA2uiFunctionDefinition

The definition of the function.