Sdílet prostřednictvím


TextValueSanitizer(Pattern, String) Constructor

Definition

Default constructor.

[Android.Runtime.Register(".ctor", "(Ljava/util/regex/Pattern;Ljava/lang/String;)V", "", ApiSince=28)]
public TextValueSanitizer (Java.Util.Regex.Pattern regex, string subst);
[<Android.Runtime.Register(".ctor", "(Ljava/util/regex/Pattern;Ljava/lang/String;)V", "", ApiSince=28)>]
new Android.Service.Autofill.TextValueSanitizer : Java.Util.Regex.Pattern * string -> Android.Service.Autofill.TextValueSanitizer

Parameters

regex
Pattern

regular expression with groups (delimited by ( and () that are used to substitute parts of the AutofillValue#getTextValue() text value.

subst
String

the string that substitutes the matched regex, using $ for group substitution ($1 for 1st group match, $2 for 2nd, etc).

Attributes

Remarks

Default constructor.

Java documentation for android.service.autofill.TextValueSanitizer.TextValueSanitizer(java.util.regex.Pattern, java.lang.String).

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