Language

CharSequenceTransformation.Builder.AddField Method

Definition

Adds the transformed contents of a field to the overall result of this transformation.

[Android.Runtime.Register("addField", "(Landroid/view/autofill/AutofillId;Ljava/util/regex/Pattern;Ljava/lang/String;)Landroid/service/autofill/CharSequenceTransformation$Builder;", "GetAddField_Landroid_view_autofill_AutofillId_Ljava_util_regex_Pattern_Ljava_lang_String_Handler", ApiSince=27)]
public virtual Android.Service.Autofill.CharSequenceTransformation.Builder? AddField(Android.Views.Autofill.AutofillId id, Java.Util.Regex.Pattern regex, string subst);
[<Android.Runtime.Register("addField", "(Landroid/view/autofill/AutofillId;Ljava/util/regex/Pattern;Ljava/lang/String;)Landroid/service/autofill/CharSequenceTransformation$Builder;", "GetAddField_Landroid_view_autofill_AutofillId_Ljava_util_regex_Pattern_Ljava_lang_String_Handler", ApiSince=27)>]
abstract member AddField : Android.Views.Autofill.AutofillId * Java.Util.Regex.Pattern * string -> Android.Service.Autofill.CharSequenceTransformation.Builder
override this.AddField : Android.Views.Autofill.AutofillId * Java.Util.Regex.Pattern * string -> Android.Service.Autofill.CharSequenceTransformation.Builder

Parameters

id
AutofillId

id of the screen field. This value cannot be null.

regex
Pattern

regular expression with groups (delimited by ( and )) that are used to substitute parts of the value. This value cannot be null.

subst
String

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

Returns

this builder.

Attributes

Remarks

Adds the transformed contents of a field to the overall result of this transformation.

Android reference for android.service.autofill.CharSequenceTransformation.Builder.addField.

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