Aracılığıyla paylaş


RegexValidator(AutofillId, Pattern) Constructor

Definition

Default constructor.

[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

Parameters

id
AutofillId

id of the field whose regex is applied to.

regex
Pattern

regular expression that defines the result of the validator: if the regex matches the contents of the field identified by id, it returns true; otherwise, it returns false.

Attributes

Remarks

Default constructor.

Java documentation for android.service.autofill.RegexValidator.RegexValidator(android.view.autofill.AutofillId, java.util.regex.Pattern).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to