Language

ImageTransformation.Builder.AddOption Method

Definition

Overloads

Name Description
AddOption(Pattern, Int32)

Adds an option to replace the child view with a different image when the regex matches.

AddOption(Pattern, Int32, ICharSequence)

Adds an option to replace the child view with a different image and content description when the regex matches.

AddOption(Pattern, Int32, String)

Adds an option to replace the child view with a different image and content description when the regex matches.

AddOption(Pattern, Int32)

Adds an option to replace the child view with a different image when the regex matches.

[Android.Runtime.Register("addOption", "(Ljava/util/regex/Pattern;I)Landroid/service/autofill/ImageTransformation$Builder;", "GetAddOption_Ljava_util_regex_Pattern_IHandler", ApiSince=27)]
public virtual Android.Service.Autofill.ImageTransformation.Builder? AddOption(Java.Util.Regex.Pattern regex, int resId);
[<Android.Runtime.Register("addOption", "(Ljava/util/regex/Pattern;I)Landroid/service/autofill/ImageTransformation$Builder;", "GetAddOption_Ljava_util_regex_Pattern_IHandler", ApiSince=27)>]
abstract member AddOption : Java.Util.Regex.Pattern * int -> Android.Service.Autofill.ImageTransformation.Builder
override this.AddOption : Java.Util.Regex.Pattern * int -> Android.Service.Autofill.ImageTransformation.Builder

Parameters

regex
Pattern

regular expression defining what should be matched to use this image. This value cannot be null.

resId
Int32

resource id of the image (in the autofill service's package). The presentation must contain a ImageView child with that id.

Returns

this builder

Attributes

Remarks

This method was deprecated in API level 28. use addOption(Pattern,int,CharSequence) instead.

Adds an option to replace the child view with a different image when the regex matches.

Android reference for android.service.autofill.ImageTransformation.Builder.addOption.

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

AddOption(Pattern, Int32, ICharSequence)

Adds an option to replace the child view with a different image and content description when the regex matches.

[Android.Runtime.Register("addOption", "(Ljava/util/regex/Pattern;ILjava/lang/CharSequence;)Landroid/service/autofill/ImageTransformation$Builder;", "GetAddOption_Ljava_util_regex_Pattern_ILjava_lang_CharSequence_Handler", ApiSince=28)]
public virtual Android.Service.Autofill.ImageTransformation.Builder? AddOption(Java.Util.Regex.Pattern regex, int resId, Java.Lang.ICharSequence contentDescription);
[<Android.Runtime.Register("addOption", "(Ljava/util/regex/Pattern;ILjava/lang/CharSequence;)Landroid/service/autofill/ImageTransformation$Builder;", "GetAddOption_Ljava_util_regex_Pattern_ILjava_lang_CharSequence_Handler", ApiSince=28)>]
abstract member AddOption : Java.Util.Regex.Pattern * int * Java.Lang.ICharSequence -> Android.Service.Autofill.ImageTransformation.Builder
override this.AddOption : Java.Util.Regex.Pattern * int * Java.Lang.ICharSequence -> Android.Service.Autofill.ImageTransformation.Builder

Parameters

regex
Pattern

regular expression defining what should be matched to use this image. This value cannot be null.

resId
Int32

resource id of the image (in the autofill service's package). The presentation must contain a ImageView child with that id.

contentDescription
ICharSequence

content description to be applied in the child view. This value cannot be null.

Returns

this builder

Attributes

Remarks

Adds an option to replace the child view with a different image and content description when the regex matches.

Android reference for android.service.autofill.ImageTransformation.Builder.addOption.

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

AddOption(Pattern, Int32, String)

Adds an option to replace the child view with a different image and content description when the regex matches.

public Android.Service.Autofill.ImageTransformation.Builder? AddOption(Java.Util.Regex.Pattern regex, int resId, string contentDescription);
member this.AddOption : Java.Util.Regex.Pattern * int * string -> Android.Service.Autofill.ImageTransformation.Builder

Parameters

regex
Pattern

regular expression defining what should be matched to use this image. This value cannot be null.

resId
Int32

resource id of the image (in the autofill service's package). The presentation must contain a ImageView child with that id.

contentDescription
String

content description to be applied in the child view. This value cannot be null.

Returns

this builder

Remarks

Adds an option to replace the child view with a different image and content description when the regex matches.

Android reference for android.service.autofill.ImageTransformation.Builder.addOption.

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