public static class EPValidationCondition.AsyncCheck
extends EPValidationCondition
This can be used to perform custom check in a asynchronous manner. You must perform the check and provide a completion. If the validation succeed you will return a "null" errorMessage message, else you will provide a dedicated errorMessage
EPValidationCondition.AsyncCheck, EPValidationCondition.IsANumber, EPValidationCondition.IsEmail, EPValidationCondition.IsNotEmpty, EPValidationCondition.IsPhone
Constructor and Description |
---|
AsyncCheck(kotlin.jvm.functions.Function3<? super android.content.Context,? super java.lang.String,? super kotlin.coroutines.experimental.Continuation<? super java.lang.String>,? extends java.lang.Object> customIsValid)
This can be used to perform custom check in a asynchronous manner.
You must perform the check and provide a completion.
If the validation succeed you will return a "null" errorMessage message,
else you will provide a dedicated errorMessage
|
Modifier and Type | Method and Description |
---|---|
kotlin.jvm.functions.Function3<android.content.Context,java.lang.String,kotlin.coroutines.experimental.Continuation,java.lang.Object> |
getCustomIsValid() |
java.lang.Object |
isValid(android.content.Context context,
java.lang.String value,
kotlin.coroutines.experimental.Continuation<? super java.lang.String> p) |
isValid
public AsyncCheck(kotlin.jvm.functions.Function3<? super android.content.Context,? super java.lang.String,? super kotlin.coroutines.experimental.Continuation<? super java.lang.String>,? extends java.lang.Object> customIsValid)
This can be used to perform custom check in a asynchronous manner. You must perform the check and provide a completion. If the validation succeed you will return a "null" errorMessage message, else you will provide a dedicated errorMessage
public java.lang.Object isValid(android.content.Context context, java.lang.String value, kotlin.coroutines.experimental.Continuation<? super java.lang.String> p)
public kotlin.jvm.functions.Function3<android.content.Context,java.lang.String,kotlin.coroutines.experimental.Continuation,java.lang.Object> getCustomIsValid()