Lenguaje

RegexValidator(AutofillId, Pattern) Constructor

Definición

Constructor predeterminado

[Android.Runtime.Register(".ctor", "(Landroid/view/autofill/AutofillId;Ljava/util/regex/Pattern;)V", "", ApiSince=27)]
public RegexValidator(Android.Views.Autofill.AutofillId id, Java.Util.Regex.Pattern regex);
[<Android.Runtime.Register(".ctor", "(Landroid/view/autofill/AutofillId;Ljava/util/regex/Pattern;)V", "", ApiSince=27)>]
new Android.Service.Autofill.RegexValidator : Android.Views.Autofill.AutofillId * Java.Util.Regex.Pattern -> Android.Service.Autofill.RegexValidator

Parámetros

id
AutofillId

id del campo al que se aplica regex.

regex
Pattern

expresión regular que define el resultado del validador: si la expresión regular coincide con el contenido del campo identificado por id, devuelve true; de lo contrario, devuelve false.

Atributos

Comentarios

Constructor predeterminado

Java documentación para android.service.autofill.RegexValidator.RegexValidator(android.view.autofill.AutofillId, java.util.regex.Pattern).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a