RegexValidator(AutofillId, Pattern) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.